Closed ile closed 1 week ago
Honestly I'm not sure. We don't do this to my knowledge. We only use the API's provided by H3 here as pure re-export. Maybe this is H3 behavior?
I suspect it's H3 behavior.
h3 assigns the result of the update
function to the session itself
The assignment expression is returning user.id
from the function and that's ending up in Object.assign
Just need to wrap the update functions in braces
Duplicates
Latest version
Current behavior 😯
Using a solid-start app, template app which has sessions enabled, after logging in and doing console.log(session), I get this:
So it sets/assigns this userId string into the session data object by some method, which "spreads" it into the object. Probably something like
Object.assign(session.data, userId);
.Expected behavior 🤔
Should not create this kind of object.
Steps to reproduce 🕹
Steps:
Context 🔦
No response
Your environment 🌎
No response