Skip to content

setState() path type safety #338

Answered by quixot1c
quixot1c asked this question in Q&A
Discussion options

You must be logged in to vote

I decided to try for myself and the answer is kind of. The compiler does know if the strings used match with actual property names, even when you supply multiple in an array, but when refactoring the property name it does not change the string with it. The compiler does start to throw errors now so you do know where to go to fix things.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ryansolid
Comment options

Answer selected by quixot1c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants