privy-open-source / design-system

Persona Design System, built on top Nuxt3, Typescript and Tailwind
https://persona.privyid.dev
MIT License
52 stars 13 forks source link

Toast: add support for SSR #720

Open adenvt opened 1 year ago

adenvt commented 1 year ago

Description

Add support run toast on server side rendering. possible approach is record all args when calling toast in server side, then calling all on client side (hydrate)

adenvt commented 1 year ago

updated: after some trial, i found out, calling toast inside setup function, will ran twice (both server and client side). It make toast shown double when hydrated