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

How can I re-download the app bundle? #3445

Closed
ashah888 opened this issue Nov 13, 2017 · 5 comments
Closed

How can I re-download the app bundle? #3445

ashah888 opened this issue Nov 13, 2017 · 5 comments

Comments

@ashah888
Copy link

When a newer version of my react-app is available. I want to re-download the bundle.

I know how to find if the bundle is outdated using a version number. But I can't figure out how I can make the browser redownload the latest bundle.

How is this possible?

@Dubes
Copy link
Contributor

Dubes commented Nov 13, 2017

Can you please elaborate? Are you trying to hot reload the browser as you are developing? If yes, then out of the box npm run start should do that for you automatically.

@ashah888
Copy link
Author

I want to use websockets to notify my react app that there is a new version available.

If my users are currently ON the webapp when this happened, they will continue to use the old webapp until they hard-refresh.

So I want to notify the users that there is a new version so they can manually click and hard-refresh the app.

@Dubes
Copy link
Contributor

Dubes commented Nov 14, 2017

I think that is out of scope for this project. CRA aims to provide you an easy way to get started with creating react apps. So more to do with developing, bundling, testing etc.

Perhaps Service Workers are more suited to the use case you are outlining. CRA already makes it easier to get started with it, you can read more about it here

@bondz
Copy link
Contributor

bondz commented Nov 14, 2017

See #2554. There's a plan to show a toast notification on the client when there's new content in #2426 and you might not need to roll it yourself. If you want to see how this can be achieved, you can check the PR.

@Timer
Copy link
Contributor

Timer commented Dec 8, 2017

Closing as dupes of above issues.

@Timer Timer closed this as completed Dec 8, 2017
@lock lock bot locked and limited conversation to collaborators Jan 20, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants