Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

StoreDevtools: Introduce Standalone API for NgRx StoreDevtools #3527

Closed
2 tasks
brandonroberts opened this issue Aug 12, 2022 · 2 comments · Fixed by #3537
Closed
2 tasks

StoreDevtools: Introduce Standalone API for NgRx StoreDevtools #3527

brandonroberts opened this issue Aug 12, 2022 · 2 comments · Fixed by #3537
Assignees
Labels
Accepting PRs community watch Someone from the community is working this issue/PR Project: Store Devtools

Comments

@brandonroberts
Copy link
Member

brandonroberts commented Aug 12, 2022

Information

Introduce standalone APIs for instrumenting the Store with the @ngrx/store-devtools package. This should allow developers to use StoreDevtools in a "module-free" application.

Based on the discussion in #3399

provideStoreDevtools(config)

This function will make use of the ENVIRONMENT_INITIALIZER token to perform any init logic that was previously done in the NgModule constructor.

Registers the connection with the Redux Devtools Extension.

Describe any alternatives/workarounds you're currently using

Using importProvidersFrom function:

// main.ts
bootstrapApplication(AppComponent, {
  providers: [importProvidersFrom(StoreDevtoolsModule.instrument())]
});

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

  • Yes
  • No
@brandonroberts brandonroberts changed the title Store: Introduce Standalone API for NgRx StoreDevtools StoreDevtools: Introduce Standalone API for NgRx StoreDevtools Aug 12, 2022
@yharaskrik
Copy link
Contributor

I got this one.

@poudelsagar725
Copy link

i got this one

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Accepting PRs community watch Someone from the community is working this issue/PR Project: Store Devtools
Projects
No open projects
Development

Successfully merging a pull request may close this issue.

4 participants