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

Transformer Errors Not Being Logged #1394

Open
julian-george opened this issue Jun 29, 2022 · 0 comments
Open

Transformer Errors Not Being Logged #1394

julian-george opened this issue Jun 29, 2022 · 0 comments

Comments

@julian-george
Copy link

julian-george commented Jun 29, 2022

I had an error in one of my transformers that was resulting in my state not being persisted, but that error wasn't being thrown/logged, leading to a lot of confusion. So I had to dig into this package's source code a little bit, and the error was thrown and logged upon calling getStoredState, but not when rehydrating. This can be easily fixed by adding a console.error(err) at line 146 of src/persistReducer.ts for development mode, and it'd save dumb devs like me a bunch of time.

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