Comments (5)
This is fixed and in the new 0.6.3
release. Thanks, @dmitry-korolev
from redux-most.
Hmmm, I've built quite a few things with redux-most and haven't experienced that before. I actually built a production auto-complete search feature with it at a company and did not run into that problem, so I'm a little confused about what's going on here. I'll try to dig into your example soon.
If it's not some other sort of bug, and is, indeed, due to the asynchronous work in most-subject, there is an alternative sync
version that we could switch to. When I first upgraded most-subject when they introduced the new async API, I tried both, but could not tell a difference between them.
Thanks for letting me know. Will try to look at it soon.
from redux-most.
@TylorS167 thoughts?
from redux-most.
I forgot to notice that absolutely same setup based on redux-observable works as expected
https://codesandbox.io/s/0mj3lxy2qp
from redux-most.
@dmitry-korolev I have confirmed that it is, indeed, an issue with the async
subject in most-subject that I somehow overlooked. It must be in only specific use cases that this problem arises, as I've never actually ran into it before.
You can see that switching to using sync
in the createEpicMiddleware.js
file solves your problem and makes things work more predictably. See this forked version of your codesandbox project I created:
https://codesandbox.io/s/8n5owr4lml
However, it looks like most-subject has a new major version (6.0.0), which has another new API, and is intended to work with the new @most/core
library. I don't yet have time to explore the API to see whether or not the same sync and async creation functions exist with different names. (I did try testing them both with [email protected], and they do not exist.)
I do plan to rewrite this library using @most/core
soon, but I'm going to hold off on that for now and just continue using most-subject 5.3.0 while changing to the sync
subject creation function.
Thanks again for letting me know about this problem!
from redux-most.
Related Issues (20)
- Setup gitter community HOT 4
- Document 'select' behavior HOT 6
- Rewrite createEpicMiddleware without Subjects to simplify and shrink build (removes replaceEpic) HOT 7
- Passing non-functions to combineEpics() results in unhandled promise rejection. HOT 4
- Add tests for TypeScript definitions
- deleted
- Add the ability to inject a custom argument into Epics HOT 4
- Change combineEpics to accept an array of epics HOT 1
- delete
- Experiment with Proxies as a replacement for Subjects
- Consider changing API to use higher order functions to inject the state stream or store HOT 4
- redux-thunk instead of actions HOT 5
- TypeScript error with Redux 4 HOT 1
- "Dispatching while constructing middleware" error with Redux ^4.0.0 HOT 3
- Updating to @most/core HOT 7
- Does not work with Typescript 3.4 HOT 1
- Release new version that works with @most/core? HOT 1
- Append an epic to an in-progress epic HOT 1
- Not working without redux-thunk
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 redux-most.