-
Notifications
You must be signed in to change notification settings - Fork 2
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
Remove the service worker #2
Comments
@levino I have no opinion on that, never worked with it. But if I had to judge by the docs it is opt-in with Create React App 2 anyways because of the problems you mentioned. They specifically recommend to not enable an offline-first service worker in development because of possible caching issues. See: https://create-react-app.dev/docs/making-a-progressive-web-app/#offline-first-considerations |
Out it goes! |
@jakobkolb Was this project created with |
I see. It is off: react-app-template/src/index.tsx Line 17 in c974cb9
We would need to change this to serviceWorker.register() to opt-in. Even if so, I vote to delete the file and all mention of the service worker. It is just noise and dangerous dead code for me. |
I didn't know about versions 1 vs 2 of create react app, but since v.2 is the default, I used that. I also didn't opt into the serviceWorker. |
@jakobkolb see my last comment which basically answered my question. |
Remove the service worker code and all mention of it in the codebase.
Former version: I hate the service worker for react apps, I only had cache issues. What is your opinion on this @monotv ?The text was updated successfully, but these errors were encountered: