score:8

Accepted answer

ok, i solved it.

the issue was with one of the components named metatags:

metatags.jsx

import react from 'react';
import { helmet } from 'react-helmet';
import { timeutils } from '../../../utils';

const metatags =
    (<helmet>
        <title data-rh="true">world covid 19 data | covid 19 world data | {timeutils.gettitledate()}</title>
    </helmet>);

export default metatags;

the react-helmet package is outdated, and i needed to install 'react-helmet-async' instead, and change the code to:

initiate.jsx

app = (
    <helmetprovider>
        <suspense fallback={null}>
            <provider store={createstore(rootreducer, composeenhancers(applymiddleware(thunk)))}>
                <helmet>
                    <title data-rh="true">dynamic title {timeutils.gettitledate()}</title>
                </helmet>
                <browserrouter>
                    {component}
                </browserrouter>
            </provider>
        </suspense>
    </helmetprovider>
);

this solved my issue and the warning was gone.


Related Query

More Query from same tag