Closed drinking-code closed 1 year ago
doSomething()
is still the state change listener for the frontend, but the lexical scope of the callback is automatically included in the compiled code, so the deps array is now only for states and refs. The need to pass the deps array may also be eliminated in the future, and states the callback is dependent on will automatically be detected..use()
, which optionally takes a transform function. This is so that state uses can be replicated in client side rendering for SPAs. Lexical scope of this callback is currently not bundled, may change later.NodeList
inside doSomething()
.sideEffect()
will be added, the doSomething()
for the server side.
This reimagines the internal architecture and fixes flaws and overlooked gaps in the design.