Loading JSON data in SSG mode #758
Unanswered
arabyalhomsi
asked this question in
Help & Questions
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have this code in
resume/index.page.server.tsx
. I am loading a json file and passing it as prop to the client page. On the first load of the webpage, everything seems to work. However, if I refresh the page once, the contents of the resume.json are printed instead. I do not understand why this is happening. Could someone please help me understand?This problem is resolved if I do this:
Beta Was this translation helpful? Give feedback.
All reactions