Closed ArrayZoneYour closed 5 years ago
Sometimes we need to pass request info to send requests when use SSR. Like:
MyApp.getInitialProps = async ({ req }) => { if (!(process as any).browser) { const initialModels = await getInitialState(req) return { initialModels } } else { return { persistModel } } }
Support passing params to getInitialState.
Don't support.
Background:
Sometimes we need to pass request info to send requests when use SSR. Like:
expected
Support passing params to getInitialState.
behavior now
Don't support.