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

react-rxdb-offline-first tutorial still working? #415

Open
AntonOfTheWoods opened this issue Feb 23, 2021 · 0 comments
Open

react-rxdb-offline-first tutorial still working? #415

AntonOfTheWoods opened this issue Feb 23, 2021 · 0 comments

Comments

@AntonOfTheWoods
Copy link

I am very new to offline and React and I am having several difficulties with this tutorial. I am able to login and see the app on localhost:3000 but if I try and refresh the page, then it loses this.idToken, tries to refresh the token and fails with a 400 error from auth0. My expectation is that if I had an error in my details it wouldn't log me in at all, though that may be wrong.

The serviceWorker is also not working - it definitely gets registered and I see "This web app is being served cache-first by a service worker. To learn more, visit https://bit.ly/CRA-PWA" but if I go offline and try and refresh, I get "no internet". Looking at the serviceWorker registration in Chrome devtools, I see a file that starts with

This service worker file is effectively a 'no-op' that will reset any
...

Which I tried to play around with in terms of setting NODE_ENV=production, etc. but it keeps getting compiled with this.
Has anyone got this tutorial to work in the last few months? Anyone else have any suggestions? Thanks!

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

1 participant