error SSR on page refresh #12160
Unanswered
murilolivorato
asked this question in
CLI - SSR mode
Replies: 1 comment
-
|
Always use a function to return state if you use SSR. const state = () => ({
searchResult: { sell: [{ value: null, showResult: false }], rent: [{ value: null, showResult: false }] },
componentIsLoaded: false,
}); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hello, I have been working with quasar + SSR since version 1 , wonderful framework .
In version 2 , I start working but it is giving me some errors ONLY IF I REFRESH THE PAGE ( IN SSR MODE ), it gives this error -
I did a new project , and I mad a few lines of code calling VUEX , and it giving me this error when I refresh .
I added the code on git -
https://github.com/murilolivorato/quasar_2_test_ssr
here is the image of the error -
https://ibb.co/CKgLB6B
BUT, only appears this error if you try to refresh the page .
sometimes , you need to refresh the page 3 times .
Then, the error , appears .
this is my code -
HOME.JS
VUEX
ERROR ON CONSOLE WHEN REFRESH THE PAGE-
Beta Was this translation helpful? Give feedback.
All reactions