Platform: StoreDevtoolsModule: Instrument only with extension for production mode?

Created on 11 Sep 2017  路  6Comments  路  Source: ngrx/platform

I'm submitting a...


[ x ] Documentation issue or request

What is the current behavior?

In order to use the devtool, I have the following code:

!environment.production
      ? StoreDevtoolsModule.instrument({ maxAge: 50 })
      : [],

The thing is, I used to do StoreDevtoolsModule.instrumentOnlyWithExtension()

Expected behavior:

I'd like to be able to use the redux devtools even in production IF the extension is present and launched.

How can I do that with ngrx V4 and the latest devtools?

Store Devtools enhancement

Most helpful comment

@brandonroberts should I work on this?

All 6 comments

@maxime1992 I went through the forked code.
I don't see instrumentOnlyWithExtension anymore in the code.
@brandonroberts is there a possibility to bring that back?

@brandonroberts should I work on this?

@roopkt have you tried something? :)

It's been two months and a half without any "official" answer and I think that if you know how to start on this it might be :ok_hand:

Hi @maxime1992 ,
I started working on this and then stopped.
Because, I am waiting for @brandonroberts to approve for starting a pull request.

Check the migration guide on how to handle in production.

@roopkt @maxime1992 we removed this option previously because of injector issues with Angular. It also streamlined the code path for instrumenting. I'd be open to this being added back if its reliable.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ghost picture ghost  路  3Comments

doender picture doender  路  3Comments

brandonroberts picture brandonroberts  路  3Comments

brandonroberts picture brandonroberts  路  3Comments

gperdomor picture gperdomor  路  3Comments