d3george / slash-admin

A modern react admin. It is based on react 18, vite and TypeScript. It's fast !
https://admin.slashspaces.com/
MIT License
1.49k stars 218 forks source link

fix: fix the screen flickering when changing theme layout in setting button #32

Closed lucyanddarlin closed 5 months ago

lucyanddarlin commented 5 months ago

every time when changing the theme layout between Vertical and Horizontal, the screen will flicker, because the component <Main /> will recreate. Actually, use different layouts, just recreate <Nav />, no need to recreate anything else. : )

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
slash-admin ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2024 7:42am
d3george commented 5 months ago

you can join the discord channel, then we can stay in touch https://discord.com/invite/fXemAXVNDa