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
let store = createStore(initialState) let state = store.getState() let body = render(h(App, { url: req.url, Serverstore: store }))
initial state on the server side and client side are same. when I run the application on development server it's run smoothly. but when I deploy it on the production server it's inserted client-side app below the SSR markup only on initial rendering when I reload the app double markup removed and run as expected. please help
The text was updated successfully, but these errors were encountered:
hello sir,
i am working on a project which is based upon this repo I have additional package unistore and i warap it into index.js
`let store = createStore(initialState)
if(typeof window !== "undefined"){
store = (window.STATE && window.STATE !== "==InitialState==") ? createStore(window.STATE) : createStore(initialState)
}
const App = ({url, Serverstore}) => {
let Finalstore = (Serverstore && typeof Serverstore !== "undefined") ? Serverstore : store
return(
)
}
export default App`
in my server.js I have added
let store = createStore(initialState) let state = store.getState() let body = render(h(App, { url: req.url, Serverstore: store }))
initial state on the server side and client side are same. when I run the application on development server it's run smoothly. but when I deploy it on the production server it's inserted client-side app below the SSR markup only on initial rendering when I reload the app double markup removed and run as expected. please help
The text was updated successfully, but these errors were encountered: