You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=> Does this library only clears the cache automatically when a new update is pushed or we need to provide an external button to the users to clear the cache manually?
=>Should I wrap the App between like this , will it automatically clear the cache when I push an update? cause when I use this in the index.js it gives me an error: "index.tsx:101 Uncaught TypeError: children is not a function"
eg:
import React from 'react';
import ReactDOM from 'react-dom';
import {BrowserRouter} from 'react-router-dom'
import './index.css';
import BackToTop from './menu'
import ClearCache from 'react-clear-cache';
import * as serviceWorker from './serviceWorker';
ReactDOM.render(
<ClearCache auto={true}>
<BrowserRouter>
<BackToTop/>
</BrowserRouter>
</ClearCache>,
document.getElementById('root')
);
serviceWorker.register();
I am also facing the same issue when using "auto" property, getting "TypeError: children is not a function".
Any one know how to auto reload when there is new version?
I do not understand how to use this library
=> Does this library only clears the cache automatically when a new update is pushed or we need to provide an external button to the users to clear the cache manually?
=>Should I wrap the App between like this , will it automatically clear the cache when I push an update? cause when I use this in the
index.js
it gives me an error: "index.tsx:101 Uncaught TypeError: children is not a function"eg:
=>Where should I put scripts and how
like this inside the pakage.json
OR
The text was updated successfully, but these errors were encountered: