ile
Getting random behavior from cache(), createAsync() and signals
I wouldn't have guessed this useAction myself, the docs are quite minimal there at the time. https://docs.solidjs.com/solid-router/reference/data-apis/action#useaction
I instantly went for cache validation/cache.set.
16 replies
Getting random behavior from cache(), createAsync() and signals
The only thing that could look better, IMO, is this:
I think this means that if the data comes from the database, it has to be "spread". That's not how one normally gets data from the database.
16 replies
Getting random behavior from cache(), createAsync() and signals
Ok, I changed it to createAsyncStore, but the strange thing is that it starts to work after about 10 seconds. After 10 seconds it works like I would expect it to, but before 10 seconds the age doesn't increase.
16 replies
Using SolidStart's prisma template app, getting odd error & crash from the route.
It's strange that the console.log() prints this twice and first with
undefined
. I can see that getUser() works every time, it loads the data from the db correctly.
This console.log() is from the server side.
On client side the console.log prints only once: sometimes with undefined
, sometimes with the correct data.
I can create a minimal repo to reproduce.9 replies