-
Notifications
You must be signed in to change notification settings - Fork 26
Open
Description
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 global
res.end(renderToString(<Provider store={createStore()}><App /></Provider>));
});Metadata
Metadata
Assignees
Labels
No labels