Closed sheleoni closed 11 months ago
Demonstrating a "data fetch" error that returns undefined
See at 82f484e
console.log(character, 'this is a character')
console.log(character.level, 'level')
console.log(character.kana, 'kana')
would not work
character.level
is undefined even though while the value of character.kana is successfully retrieved
.
apply JSON.stringify()
to fetched record and then doing JSON.parse()
on the stringified object.
tada!
Maximum call-stack size exceeded (fixed at 18e2a3f)
We are now able to
/play
save score
button
at https://github.com/sheleoni/icecream-kana-game/pull/67
However, once saving score is completed, we get a JSON token error when user presses sign out (user is signed-out which is evident after refreshing after error). Further investigation needed. getUserTideLevel()
etc, at server-side render does not happen)
Goal
Steps
getUserTideLevel
on a purely-server component (done in f441fc7)/play
so that data fromgetUserTideLevel
can be passed to/play