Comments (4)
I spotted a problem with SSR and tried to so solve it - my attempt is already on master and published as [email protected]
. It seems to work in iOS Chrome, but seems not to work in iOS Safari (I'm on iOS version 13.6.1).
The idea came from https://joshwcomeau.com/react/the-perils-of-rehydration/, but I suspect that some non-gatsby but SSRed apps may re-render unpredictable amount of times before getting flushing SSRed HTML to the client, so the proposed solution to render in two passes may not suit all.
@mhedengren I'm still exploring this issue and will keep you updated.
from react-div-100vh.
Hi @mhedengren! If you're still using the component, can you try out [email protected]
? The API might have changed, please consult the readme.
from react-div-100vh.
Hi Melker,
thanks for reporting and for the nice reproduction. Will look into it tomorrow.
from react-div-100vh.
I spotted a problem with SSR and tried to so solve it - my attempt is already on master and published as
[email protected]
. It seems to work in iOS Chrome, but seems not to work in iOS Safari (I'm on iOS version 13.6.1).The idea came from https://joshwcomeau.com/react/the-perils-of-rehydration/, but I suspect that some non-gatsby but SSRed apps may re-render unpredictable amount of times before getting flushing SSRed HTML to the client, so the proposed solution to render in two passes may not suit all.
@mhedengren I'm still exploring this issue and will keep you updated.
Ok I see! Sounds great :) Many thanks for taking your time do to this.
from react-div-100vh.
Related Issues (20)
- Ditch rvh for a React hook and rewrite in TypeScript HOT 8
- Request to add further explanation to readme HOT 2
- Android Chrome, UI bar dissappears as user scrolls down leaving gap when moving page HOT 8
- TypeScript definitions missing in 0.5.2 HOT 1
- ReferenceError: document is not defined (v0.5.0) HOT 1
- Consider using "browser" field in package.json
- height is sometimes wrong when browser height shrinks HOT 2
- Website opened via Instagram browser has incorrect height HOT 3
- Update height on device orientation change? HOT 3
- On entering a text field on safari a bunch of additional space is created at the bottom HOT 3
- Do we have alternative solutions? HOT 1
- get npm ERR! Cannot read properties of undefined (reading 'spec') error HOT 1
- Problem with recalculating height on mobile HOT 1
- `document.documentElement?.clientHeight` is not updating on latest iOS safari HOT 4
- Not recommended IMHO HOT 3
- Sometimes the height does not change when orientation change from Landscape to Portrait on iOS PWA HOT 4
- [mobile]: resize event on keyboard open HOT 2
- Possible to do 100vh - [<x>px]? HOT 1
- Mobile chrome browser on Android requires a tap for div to show HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-div-100vh.