Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Strictness for Roact Components #243

Open
stravant opened this issue Nov 23, 2019 · 0 comments
Open

Strictness for Roact Components #243

stravant opened this issue Nov 23, 2019 · 0 comments
Labels
enhancement status: needs design Used when we're not sure what the best way forward is

Comments

@stravant
Copy link

Currently it's easy to accidentally forget .props. / .state. when reading data from Roact components. It would be nice if there were an easy way to enable strictness for components extended from Roact.Component so that you would get an error if you accidentally type self.foobar instead of self.props.foobar, rather than a nil which silently propagates forwards and likely causes issues later on.

@LPGhatguy LPGhatguy added enhancement status: needs design Used when we're not sure what the best way forward is labels Nov 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement status: needs design Used when we're not sure what the best way forward is
Projects
None yet
Development

No branches or pull requests

2 participants