Comments (6)
Ok I've checked out your repo. I get it :)
from resize-observer.
I've tested this in some different environments and all seems ok. If you're still having problems, feel free to reopen. Thanks!
from resize-observer.
Hey @MurhafSousli,
So removing the reference of window
here fixes it for you? I take it the other references to window
aren't an issue, because this part of the code isn't called until it hits the client-side?.. I feel there is more to the issue than this though..
- What SSR environment are you running?
- Why is ResizeObserver being included at this stage?
Is it required? Is it being imported from something else which is to be rendered? - Does the environment you're running emulate the browser at all, or, is it a plain Node environment? Or something else?
If it's easy enough, maybe you could provide a sample repo to look at? It would be great to get more of an idea.
from resize-observer.
Hi @TremayneChrist, no it is not a plain node, but I am using to do a recalculation and update the UI for a custom scrollbar library that supports SSR. https://github.com/MurhafSousli/ngx-scrollbar
from resize-observer.
@MurhafSousli can you try version 2.3.0
.
from resize-observer.
Seems to be working fine, thanks a lot!
from resize-observer.
Related Issues (20)
- Refactor and reduce code to allow for a smaller bundle size HOT 1
- ResizeObserver loop completed with undelivered notifications HOT 13
- .disconnect() breaks additional observe calls HOT 1
- Using this polyfill with polyfill.io HOT 4
- Improve code hints
- covering more cases HOT 10
- The UMD build doesn't not export the globals as expected HOT 5
- ResizeObserver loop completed with undelivered notifications (native works fine) HOT 13
- Improve the accuracy of device-pixel-content-box when moving elements across pixels
- Imports must specify file extension when "type": "module" HOT 4
- [Question] - How does this package compares with que-etc/resize-observer-polyfill ? HOT 3
- Missing null check HOT 3
- [spec] lastReportedSize should initialise with (-1, -1) HOT 1
- ResizeObserverEntry type does not match actual payload when using Safari versions 15.3.1 and older HOT 1
- the >>> and /deep/ combinators have been deprecated. Use :deep() instead HOT 1
- ResizeObserver loop completed with undelivered notifications. HOT 2
- Inconsistent anchoring in regex HOT 1
- import question HOT 5
- Update readme to point to public working draft HOT 2
- It throw error if target element inside a iframe on Chrome HOT 11
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 resize-observer.