Repository navigation
Replies: 2 comments 1 reply
|
The documentation is momentarily being rewritten and feedback like yours is really valuable.
Basically, the main difference between react and solid is that in react, running code as a reaction is the default and to run something once, you need to opt out of its reactivity, like a car with the pedal always on the metal and you need to be on the brake all the time. On the other hand, in solid, reactivity is opt-in on all levels, akin to a normal car where you are fully in control. Code runs only once if called and you can register reactive effects and memos. These require all getters to be called as function (directly, like with signals, or via proxy, like in stores). If you keep that in mind, most of the rest should be pretty straightforward. |
|
I got an answer for the createVirtualizer hook, they suggested a getter. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I can't understand what it is at all, from the documentation and not even from some examples I found.
Would be greatfull for explanation.
In general, though it took me a short time to read the documentation, it seems to be lacking a lot about:
specifically how to make a primitive to be responsive to a data.
dealing now with the createVirtualizer from tanstack.
With React it is simple - after new render, the hook will receive the new data...
Coming from React ecosystem (experienced with mobx and such)
All reactions