platform icon indicating copy to clipboard operation
platform copied to clipboard

@ngrx/store: Update examples to standalone APIs

Open brandonroberts opened this issue 2 years ago • 13 comments

Information

Standalone APIs have been stable since Angular v16, and we should update the @ngrx/store documentation to use standalone APIs by default, and reference previous versions of the docs for module-based apps.

Documentation page

No response

I would be willing to submit a PR to fix this issue

  • [ ] Yes
  • [ ] No

brandonroberts avatar Oct 16 '23 19:10 brandonroberts

Can we make PRs to help on this issue?

Jad31 avatar Oct 18 '23 10:10 Jad31

@Jad31 sure. I'll take Store/Effects but the rest are up for grabs

brandonroberts avatar Oct 20 '23 12:10 brandonroberts

@brandonroberts I'm eager to start working on the other sections. However, I'd appreciate it if you could share an example or template for the "Store/Effects" part first. This will help ensure a consistent approach across all sections. Thanks!

Jad31 avatar Oct 30 '23 10:10 Jad31

I will pick up Router Store!

KirilZafirov avatar Dec 04 '23 10:12 KirilZafirov

Thanks everyone! I will have an example PR soon

brandonroberts avatar Dec 04 '23 14:12 brandonroberts

Hello ! I guess it's related to both docs and schematics, but is it planned to make / document a schematic option for basic operations in a standalone app in order not to use the StoreModule but the provideStore ?

aboudard avatar Jan 03 '24 13:01 aboudard

Hi @brandonroberts, do you need extra support on it? We have people confused trying to use NgRX as Angular is using Standalone APi by default now.

geromegrignon avatar Jul 30 '24 00:07 geromegrignon

https://github.com/ngrx/platform/issues/4417

rainerhahnekamp avatar Jul 30 '24 00:07 rainerhahnekamp

This issue is now dedicated to updating @ngrx/store examples to standalone APIs.

Issues for other packages: #4468 (effects) #4469 (router-store) #4470 (store-devtools)

If anyone is interested in contributing, all mentioned issues are accepting PRs.

markostanimirovic avatar Jul 30 '24 20:07 markostanimirovic