Comments (2)
I encountered a similar issue when building a bluetooth system that I start on application launch. The system was monitoring the methodInvoked stream for appDidBecomeActive but it seems to me that the system was missing the first event due to the async nature of the architecture. So it subscribed right after the method was invoked. @kzaher is this a correct behavior?
It doesn't happen on all devices/iOS versions though.
I solved it by using a BehaviorRelay instead of the methodInvoked. I update the variable in viewWillAppear and viewWillDisappear and the system gets notified and will not miss the event. I think it makes sense as it's more like a state rather than just a Signal that you need.
from rxfeedback.swift.
This is reliance on the timing of the subscription. This is quite fragile approach IMHO. Subscribing to a state describing is the VC view visible is better IMHO.
from rxfeedback.swift.
Related Issues (20)
- Please update the examples in the README HOT 2
- Problem building dependencies of the example app. HOT 6
- RxFeedback example PlayCatch not working HOT 1
- Add more example about the new react function
- GithubPaginatedSearch example bug
- RxFeedback functions autocomplete problem HOT 2
- Ambiguous reference to member 'system(initialState:reduce:scheduler:feedback:)'
- The printing is printed only after network request is done.
- How can I fix this warning HOT 1
- RequestLifetimeTracking forwardRequests: Duplicate keys were found in Dictionary HOT 6
- Non-equatable requests in 2.0 HOT 6
- [Proposal] Introduce ObservableSystem make system chainable. HOT 3
- How to test the Event creation?
- [Proposal] React for Void?
- bind(self) { ... } leaks HOT 4
- [Request] Could you port RxFeedback to Combine HOT 2
- Carthage for macOS HOT 1
- New Release Tag HOT 11
- [Xcode 15 RC1 Bag] Names conflict HOT 5
- Cannot call value of non-function type '[Observable<Event>.Type]' HOT 2
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 rxfeedback.swift.