Comments (5)
If it shows in the logs then it means the hook is working as expected.
I tested this in snack and it worked on both web and my mobile device.
from observable-hooks.
Could it be a layout issue? The rooms are hidden or outside of viewport.
from observable-hooks.
Okay, thank you for the quick response, and the example too!!
I moved the hook up one level and just passed the data down, and it was working... so not sure exactly what was happening but all is well, for now. glad to know I'm not crazy, I love using these hooks so I'm happy its functioning as expected
from observable-hooks.
Could it be a layout issue? The rooms are hidden or outside of viewport.
I have since discovered it's partly because I'm a potato and I included react and react native in the NPM package I created 🙃 I've gotten the values to show up!
however a mystery I haven't solved is it seems the flatlist is loading things one at a time, with like half a second between each one? (and the whole list doesn't update in the view until each one has finished. I know the timing because I dropped a log inside the render function) very odd indeed. not sure why yet. regardless, I don't think it's related to observable-hooks, so that's cool
from observable-hooks.
I have since discovered it's partly because I'm a potato and I included react and react native in the NPM package I created 🙃 I've gotten the values to show up!
Didn't expect that😂. Glad to know it's working now.
however a mystery I haven't solved is it seems the flatlist is loading things one at a time, with like half a second between each one? (and the whole list doesn't update in the view until each one has finished. I know the timing because I dropped a log inside the render function) very odd indeed. not sure why yet. regardless, I don't think it's related to observable-hooks, so that's cool
Sounds like a lagging issue to me. Note that Expo runs significantly slower on development mode. Also check for any unexpected component update on rendering.
from observable-hooks.
Related Issues (20)
- 老哥多出些rx的文章呗
- rfc: 为 useObservable 添加泛型以匹配多种 Observable HOT 1
- 请问下现在这个库再react18中使用,有多大的风险,有列举有风险的api吗 HOT 1
- 如何使用 useObservableEagerState 获取“从无到有”的 BehaviorSubject 值? HOT 2
- Question - descendent re-rendering? HOT 2
- Unexpected error when using `useSubscription` for a `Subject` HOT 1
- The `BehaviorSubject` of `useObservable` could cause resource leaks HOT 11
- [Bug]: `useObservable*` hooks does not work when observed value is a `Map` instance HOT 3
- 为啥国内作者,文档全是英文呢? HOT 3
- ❓ Question: How can i use useObservable to create a subject HOT 1
- useObservableState: Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render. HOT 5
- Provided sourcemaps reference the src folder which isn't distributed HOT 3
- RxJs 7.0 support HOT 2
- Feature proposal: A hook to create a Observable State HOT 2
- 违背hooks原则 HOT 1
- useObservableEagerState missing emit HOT 13
- useObservableState(BehaviorSubject) gives undefined when first rendering HOT 2
- useSubscription 会触发 JS 报错导致页面白屏 HOT 27
- Make XHR requests using ObervableResource with a parameter HOT 4
- 如何实现替换react官网的useEventCallback? 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 observable-hooks.