samkhan27 / lwc-redux

Lightning Web Components (LWC) bindings for Redux
MIT License
24 stars 7 forks source link

Integrating with Devtools #1

Open srikanth-peruri opened 5 years ago

srikanth-peruri commented 5 years ago

Hi @samkhan27 , It's very nice to see this awesome State management container in LWC. I started exploring the Redux and started integrating it into our app.

I tried to integrate the redux store with the redux devtools chrome plugin for better debugging. But calling the window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ is giving me undefined.

Here is the article. https://github.com/zalmoxisus/redux-devtools-extension

Please suggest the usage techniques for devtools.

dmitry-prohorov commented 5 years ago

@srikanth-peruri it is not possible to make chrome extension to work with LWC because your components do not have access to the window object. LockerService wrap global window object to SecureWindow.