Comments (7)
I refactored the selectors to use createSelector
and it seems to be working. I will make a release within the next few days.
from entity-state.
I can confirm the behaviour. I'll see what I can do.
@markwhitfeld do you have any insight on how select
works? If I debug I can see that the UpdateAnotherState
action is dispatched and the returned function from TodoState.entities
gets called. The that
variable points to the correct class.
Opened branch issue-206
.
from entity-state.
Hello ! :)
Same issue for me ! Are there any plans to fix this issue?
Thanks a lot for this great lib !
from entity-state.
I would like to fix it but I've no idea what might cause this. I don't know enough about the inner workings.
from entity-state.
I think it's about how the selectors are created in the test, just checking.
from entity-state.
There isn't a bug in the library, it's the test what doesn't work properly. I test it in a app, and it works properly, only emits once.
For the answer to the issue i put on the ngxs/store repository, it should be the same here.
Probably what your getting the factory function, that's also a selector.
from entity-state.
👍 Nice @JanMalch , really interesting to have this ready to production.
I think is a must for all state management libraries(Akita have it by default), to be able to do basic operations with entities(create/update, delete...). And it's great and descriptive the way to define actions without the need to write more code:
new UpdateActive(TodoState, { done: true })
Probably will be easy to extend this to add more generic Actions for the needs of each App:
-
Make a custom generic Actions for search.
-
Cache
-
or any other need
I probably include soon ngxs/store and ngxs/entity-state in a company project.
from entity-state.
Related Issues (20)
- Help request / question => how to get an entity by id? HOT 3
- Feature/Discussion: Collection Sort/Filter HOT 3
- Provide beta release? HOT 15
- Behaviour of remove action HOT 5
- Switch to Jest test framework
- Joining Selectors of two EntityState not working
- Make pagination feature optional HOT 2
- Expose internal.ts to public to easily extend EntityState using same logic HOT 8
- Angular 9 upgrade blocked HOT 2
- Allow numbers as keys HOT 2
- Error: Attempted to get members of a non-class: class Add - NGCC HOT 3
- could not get librabry folder in my project HOT 3
- Adding Api Response to Entities HOT 3
- Change UMD Bundling from ES2015 to ES5? HOT 6
- [Feature request] IdStrategy with nested keys
- State of the library HOT 2
- Provide filter operators for actions e.g. ofEntityAction HOT 1
- Migrate to State Operators HOT 2
- Not working developmentMode, getting ERROR TypeError: Cannot add property VALUE_OF_ID, object is not extensible HOT 1
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 entity-state.