How do I force the useSession hook to update when a user's data changes independent of the session?
I'm using betterAuth for email and password authentication with the cookie cache enabled for performance.
I use the useSession hook to react to auth changes in the navbar like so.
i use this to display the name and links to the pages they're allowed to access (with additional checks ofc). however an issue arises when the user changes their name, the name in the navbar doesn't change. the solution i've come up with is this, inside the code that handles the name change inside the event handler for the button that changes the name on the front end
however i cannot find any documentation regarding manually pushing signals to the store so I'm not sure if this is necessarily correct
I use the useSession hook to react to auth changes in the navbar like so.
i use this to display the name and links to the pages they're allowed to access (with additional checks ofc). however an issue arises when the user changes their name, the name in the navbar doesn't change. the solution i've come up with is this, inside the code that handles the name change inside the event handler for the button that changes the name on the front end
however i cannot find any documentation regarding manually pushing signals to the store so I'm not sure if this is necessarily correct
