Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I do not see update in time #44

Open
dmius opened this issue Feb 26, 2021 · 1 comment
Open

I do not see update in time #44

dmius opened this issue Feb 26, 2021 · 1 comment

Comments

@dmius
Copy link

dmius commented Feb 26, 2021

Hi,

I use ClearCache in case of render props.

      <ClearCache>
        {({ isLatestVersion, emptyCacheStorage }) => (
          <div>
            {!isLatestVersion && (
              <div className={classes.updateLink}>
                UI update is available
                <a
                  href='#'
                  onClick={e => {
                    e.preventDefault();
                    emptyCacheStorage();
                  }}
                >
                  Apply update
                </a>
              </div>
            )}
          </div>
        )}
      </ClearCache>

And I see that meta.json does not request every 1 minute (or other duration period). So I can see update notice only if reload the app.
Can I get notice without reloading the app?

@DigneshGujarathi
Copy link

I'm having similar problems; how does the value of isLatestVersion change? The duration was added as shown below.
<ClearCacheProvider duration={1000}>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants