Recoil selector throws error in production build

Created on 25 May 2020  路  6Comments  路  Source: facebookexperimental/Recoil

Recoil selector throwing an error of "Error: 's' is read-only" in the production build of React js app

Here is the console error and code:
Screenshot 2020-05-21 at 1 10 53 PM
Screenshot 2020-05-21 at 1 11 05 PM

bug

Most helpful comment

Just waiting on one more diff to fix our repo sync issues and then we can publish those fixes. Thanks for your patience!

All 6 comments

This is already fixed by #69 and is a duplicate of #122.

We all need to wait for a release containing the fix.

EDIT: grammar

Just waiting on one more diff to fix our repo sync issues and then we can publish those fixes. Thanks for your patience!

New version asap would be great as many things have been fixed in source.

I think this is fixed as version 0.0.8 was released?

I can confirm this i fixed with 0.0.8 馃殌

Thought i'd just leave this comment here even though its not the place for it; After refactoring a small project from redux/thunk -> recoil; We saw a 25-35% reduction in page size, and 15KB or so wiped off our "all components share this code" bundle. We refactored purely as an experiment without knowing if it would be merged in or not but the results blew us away and now everything will stay recoil going forwards.

Was this page helpful?
0 / 5 - 0 ratings