Giter Club home page Giter Club logo

Comments (7)

JanMalch avatar JanMalch commented on August 18, 2024 1

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.

JanMalch avatar JanMalch commented on August 18, 2024

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.

kodze avatar kodze commented on August 18, 2024

Hello ! :)

Same issue for me ! Are there any plans to fix this issue?

Thanks a lot for this great lib !

from entity-state.

JanMalch avatar JanMalch commented on August 18, 2024

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.

amollahi avatar amollahi commented on August 18, 2024

I think it's about how the selectors are created in the test, just checking.

from entity-state.

amollahi avatar amollahi commented on August 18, 2024

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.

amollahi avatar amollahi commented on August 18, 2024

👍 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.