fabiospampinato
Mass Normalization of Props
How could you possibly hope to control your updates if everything is always reactive?~everything could possibly be reactive in Solid, where "everything" is basically either a function call or a property access, basically anything that could end up calling a function
31 replies
Mass Normalization of Props
Examples:
- switching between 2 virtualization modes on the same component, maybe one requires refs and the other doesn't, if you want to support that now you need to pass refs all the time, which for one of the modes is wasteful
- maybe you have a createDebounced or something, supporting the wait time changing is trickier than it may seem (what happens if that's updated before it has a chance to trigger? do you reset the timer so the callback is potentially never triggered?). If you never need that there's no reason to even think about it imo
31 replies