You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you use Provider pattern, why no props to support SSR?
If you don't support SSR, why use Provider pattern?
Provider pattern is the way to support SSR, so two different http requests in one nodejs backend program will not share their global state.
app.get('/',(req,res)=>{// in Provider pattern, store is created in handler // rather than in module top level which is in fact globalres.end(renderToString(<Providerstore={createStore()}><App/></Provider>));});
The text was updated successfully, but these errors were encountered:
If you use Provider pattern, why no props to support SSR?
If you don't support SSR, why use Provider pattern?
Provider pattern is the way to support SSR, so two different http requests in one nodejs backend program will not share their global state.
The text was updated successfully, but these errors were encountered: