Git Product home page Git Product logo

Comments (3)

qdouble avatar qdouble commented on July 20, 2024

@Matmo10 upload a repo of it being used the way you have it now and I'll see if I can incorporate it

from angular-webpack-starter.

Matmo10 avatar Matmo10 commented on July 20, 2024

I played around with it in the ngrx-example app. Here's how they import it:
https://github.com/ngrx/example-app/blob/master/src/app/app.module.ts#L66

It works fine if I import it along side the StoreDevTools module in this project, and this is how I'm using it now, but I wanted to turn it off for prod builds:

imports: [...etc,
                StoreDevToolsModule,
                StoreDevtoolsModule.instrumentOnlyWithExtension()
               ]

I've tried configuring and using/adding to the app's imports it conditionally based on ENV and STORE_DEV_TOOLS but I get inconsistent results. I've tried doing it in both store-devtools.module.ts as I mentioned above, and in app.imports.ts. Based on Mike Ryan's comment it also seems like it it can't be used simultaneously with the ngrx-store-log-monitor. But half the time it works and half the time it doesn't.

Even when I do this with STORE_DEV_TOOLS set to 'both' or 'monitor':

if (ENV === 'development' && !AOT && !['both', 'monitor'].includes(STORE_DEV_TOOLS)) {
    APP_IMPORTS.push(StoreDevtoolsModule.instrumentOnlyWithExtension());
}

it still seems to be enabled sometimes.

I'll close this for now since I'm not really sure what the correct configuration / implementation looks like, and since I just wanted to mention it as a suggestion, really. I had no idea this extension worked with ngrx until today when I saw it mentioned in the ngrx/store gitter channel.

from angular-webpack-starter.

qdouble avatar qdouble commented on July 20, 2024

@Matmo10 yeah, I think I tried to play around with it like a month or so ago but it wasn't working right... I've never gotten to use it before to tell if it's worth it or not

from angular-webpack-starter.

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.