3 ms·
1. With this approach of sending "only the small JS chunk needed for interactivity" aren't we going to end up with the situation where chunks A and B need commo
by bartq 4y ago
1. With this approach of sending "only the small JS chunk needed for interactivity" aren't we going to end up with the situation where chunks A and B need common part C? And what if C needs D etc. There should be provided a dynamic modules loader. Is it implemented in all those hydration based frameworks?
2. How is solved the situation when <button> is delivered to the user, but "onClick" action is not because network failed?
- lucacasonato 4y ago> Is it implemented in all those hydration based frameworks? I can't speak for all frameworks, but fresh can dynamically break out shared dependencies so you don't have to download the same code twice. > How is solved the situation when <button> is delivered to the user, but "onClick" action is not because network failed? Developers need to deal with this in their applications. The counter example on the fresh homepage uses <button disabled> for the server side render, and only enables the button in the client side when the counter island hydrates.
- NetOpWibby 4y agoOoh, I like that.