Stephen Jason Wang

Results 82 comments of Stephen Jason Wang

This PR mainly implements cookie splitting and nothing is needed in the official nuxt release. Furthermore, I'm aware that you want it to be 0 dependency package, but using it...

@prazdevs yes, ssr full compatibility. I believe localstorage is higher and only client side. I'd be using it to store roles, permissions, tokens etc.. So i need it to be...

hello @prazdevs have you found anything that can help on this matter? Thank you so much

@prazdevs I've tried splitting it to multiple cookies but it still does reach a limit. Higher though but still get's an error

@ASoldo After I login, i get back all this info and I am storing ``` user:{ id: 1 name: stephenjason89 branches:[{id:1, name:'warehouse'] roles:[ {name: 'Admin', permissions: ['many', 'different' , 'permissions']}...

Oh yes this is not accessible inside a nuxt middleware. what i did is

Yes @prazdevs , I think middleware is being called first than plugin. So nothing is being restored from storage when middleware loads.

@prazdevs I noticed that this behavior is also present inside Plugins not just middleware This makes createNuxtPersistedState useless as I can't access anything in SSR inside some plugins.

@steklopod I did the exact same, it works but it has a problem with SSR Before hydration you can see that no style nor vuetify element are present. After hydration...