I don’t expect I’m the first to ask this but has anyone managed to build a dashboard layout that doesn’t show the sidebar initially in mobile view? Using conditionals (or state), I know you can hide the sidebar by saying - if screensize is less than 500px, do not show sidebar. However, there is a brief moment where you can see it and you continue to see it whenever you change pages. For example - Dashboard | Sline - looks great, but if you view in mobile view and load the page or navigate to a different page you can see the sidebar for a split second on page load. Has anyone come across a workable solution? Cheers
I’ve never experienced that before, nor can I replicate it in any quick tests I just made (although I do see it in the demo app you linked to, so I’m guessing there’s some inefficient logic going on there)…
But if it’s happening for you the simplest way to fix it would be to switch the logic around - i.e. have the side bar not visible on page load, and only show it when the screen width is above a certain size.
@rpetribu - Yeah I’ve tried that but it still shows briefly unfortunately. I just don’t understand why it shows when the element isn’t visible on page load?