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

Introduce strict mode for accessing state #75

Open
andykog opened this issue Dec 8, 2020 · 0 comments
Open

Introduce strict mode for accessing state #75

andykog opened this issue Dec 8, 2020 · 0 comments

Comments

@andykog
Copy link
Collaborator

andykog commented Dec 8, 2020

#66 introduces errors on accessing state in untracked react components in v4.
It's makes switching to v4 difficult for large teams because of the errors amount.
Make it configurable (turned off by default for now) to allow gradually fixing those errors.
Something like:

import * as remx from 'remx';

// remx shouldn't trigger error 
// “[REMX] attemted to access prop 'xxx' in react component untracked by remx”
// until this line:
remx.enableAccessStateStrictMode(true);

// We should be able to turn it off as well:
remx.enableAccessStateStrictMode(false);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant