How to persist local storage after a logout in React-admin?

So I have to save some user preferences and I wanted to use the useStore hook to do so. As per the Preference documentation states:

The store uses the browser local storage (or a memory storage when localStorage isn’t available). The store is emptied when the user logs out.

Is there a way to avoid this and preserve some of the saved preferences after the user logs out?

I tried to go around React-admins functionality and created functions that access the store directly, but seems that react-admin deletes even the data that he did not write (quite aggressive?). Currently I don’t want to store this data on the backend (Not an option), so the only other way is cookies I believe. I want to avoid cookies if possible since I would have to comply with the “ePrivacy Directive“. Is there a way around React-admin’s functionality or another option that I don’t see or don’t know about?