-
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
Hey Lee! Thanks so much for responding.
What's not clear to me is where do the providers go (ReduxProvider, ReactQueryProvider etc)?
Can they be instantiated up tree in a server component somewhere? And if that's the case, what data do they hold when on the server and what happens a client component tries to interact with the provider?
Or should I render as much as possible via RSC and put the providers in the first client component in the tree?
I've been trying to keep tabs on the GitHub issues and Discord that discuss this, but I have to admit, it's a bit over my head. The best resource I've found so far to understand how libraries are adapting is from Apollo's RFC here: https://github.com/apollographql/apollo-client-nextjs/blob/p...
-
Have you considered Deno? First class TypeScript support, secure sandboxing, and JIT rendering for React/Preact style projects with Fresh (https://fresh.deno.dev).
Also, they recently introduced a Node compatibility feature that supports _most_ modules. You can import directly from NPM using the npm: specifier, or import (almost) all of the builtin Node APIs using the standard node: specifier. Since recent versions (1.30+) of Deno are bundled with whats essentially a Node clone, and since its all packaged as a ~32MB executable... I've found myself just using Deno for everything lately. So far its been able to handle all of the projects I used to run with Node.
Check out their docs: https://deno.land/manual