Platform: is there a @ngrx/entity to support NGRX component-store ?

Created on 1 Sep 2020  路  5Comments  路  Source: ngrx/platform

is there a @ngrx/entity to support NGRX component-store ?

I am running into an issue when I try to update any data in the component-store.

I gotta clone the whole data set and then update immutably.

most of this CURD option been solved by @ngrx/entity on global store.

Is there any advise on this ? please suggest.

Most helpful comment

I worked on a StackBlitz example of this usage. Let me know if you have any questions

https://stackblitz.com/edit/heroes-component-store?file=src%2Fapp%2Fhero.service.ts

And the streamed video
http://www.twitch.tv/brandontroberts/v/730024164

All 5 comments

Hey @dean-g
That's a great question!

I'm planning to remove the dependency to @ngrx/store from entities soon: https://github.com/ngrx/platform/issues/2333#issuecomment-633082052

I'm already using @ngrx/entity together with ComponentStore in my project, but I use @ngrx/store, so it's not that I'm bringing an extra dep for nothing 馃榾

@alex-okrushko Can you please share me an example if you have anything with @ngrx/entity and component store ?

@alex-okrushko Can you please share me an example if you have anything with @ngrx/entity and component store ?

The code is internal. Are you having any issues with this combo?

I worked on a StackBlitz example of this usage. Let me know if you have any questions

https://stackblitz.com/edit/heroes-component-store?file=src%2Fapp%2Fhero.service.ts

And the streamed video
http://www.twitch.tv/brandontroberts/v/730024164

Great. Thank you very much @brandonroberts . that's really awesome

Was this page helpful?
0 / 5 - 0 ratings

Related issues

doender picture doender  路  3Comments

oxiumio picture oxiumio  路  3Comments

dollyshah-02-zz picture dollyshah-02-zz  路  3Comments

NathanWalker picture NathanWalker  路  3Comments

mappedinn picture mappedinn  路  3Comments