unstated-debug icon indicating copy to clipboard operation
unstated-debug copied to clipboard

Cannot access containers using `inject`

Open ghost opened this issue 6 years ago • 1 comments

When using this debugger I cannot access any containers which have been injected into my provider. ie:

const authContainer = new AuthContainer();
...
<Provider inject={[authContainer]}>
  ...
</Provider>

Is there any way to attach to these containers to view state?

ghost avatar Nov 07 '18 19:11 ghost

This is probably due to instantiating your container before importing unstated-debug. Move unstated-debug higher in your import list so that it is around when your containers are constructed.

tbiller avatar Feb 09 '19 16:02 tbiller