|
|
|
|
|
by recursive
631 days ago
|
|
This hasn't been my experience at all. The implementation details even leak into this crazy thing called "the rules of hooks". It looks like a function but it's actually this new thing called a hook. Which state will you get? That depends on whether the reconciler considers this invocation to be a mount or update. Getting the wrong one? Try restructuring your elements or adding or removing a "key" attribute. People tolerate this because they learned it but I don't think there is anything essentially simple about it. |
|