Add a replaceSession
function to ovewrite the session data instead merging it.
#773
Closed
1 task done
Labels
enhancement
New feature or request
Describe the feature
If I want to use discrimated unions for session types in my app, I currently have to do this:
Honestly, I'm not a big fan of this approach.
I think it would nice if there was a function like
replaceSession
to simply assign a new object tosession.data
instead of doingObject.assign
.Additional information
The text was updated successfully, but these errors were encountered: