#Sevoral

1 messages · Page 1 of 1 (latest)

blissful ether
#

Hey I am frequently getting sevoral errors I am guessing its parsing library, couldn't find documentation about it.

So I noticed it happens when I don't use JSON.stringify when sending data from server or don't use solidstart built in json function. If you could explain me how these work and link me documentation about Sevoral it would mean a lot.

tacit berry
blissful ether
tacit berry
#

Oh yeah ObjectId is a common one

#

You don't necessarily have to stringify, just convert it to a plain object and seroval can take care of the rest, but i don't think Start will support serializing ObjectId and the like in future

blissful ether
#

I will ask you another question about cache function, I do understand keys and revalidating but I want to know when I revalidate the cache key does it only run function on server? or does it fetch from client as well?

tacit berry
#

It will run whatever you've put inside the cache - if it's a server function, it'll only run on the server. If it's a manual call to fetch then it'll run on the server during SSR and client in the browser

blissful ether
#

Thanks a lot, the websites you have linked to your profile are dope.