<Hidden> broken with SSR - DashboardLayout Screens+
Description
On first page load with <Hidden from="md"> and <Hidden till="md"> the till="md" loads first on large web pages with SSR.
CodeSandbox/Snack link
https://github.com/miles-118/ssr-issue-example
Steps to reproduce
- Clone the repo: https://github.com/miles-118/ssr-issue-example
- Run yarn on the root directory.
- Then run yarn web on the root directory.
- Open http://localhost:3000/ in your browser
- Move the page around
- Reload the page
- See SSR issues
- Go to http://localhost:3000/user/NativeBase in your browser
- Click "Go Back"
- See Working Page
- Reload the page
- See SSR issues
NativeBase Version
3.4.9
Platform
- [ ] Android
- [ ] CRA
- [ ] Expo
- [ ] iOS
- [X] Next
Other Platform
No response
Additional Information
When you load the page for the first time, <Hidden till="md"> is ignored on a large web browser as the width is 0, and <Hidden from="md"> loads even with isSSR={true}.
The DashboardLayout in Screens+ has this issue.
On first page load in a browser with a large screen
```
the Mobileheader loads first and does not change as the page loads. This causes the header at the top to be white.
https://user-images.githubusercontent.com/107222578/179380198-39948357-6379-446e-bf19-8af749fc2248.mp4
Hi @miles-118, Thank you for reporting this issue. We will try to fix it at the earliest.