skortchmark9 / reselect-tools

Debugging Tools for Reselect
MIT License
426 stars 24 forks source link

Support for iframes #22

Open james2406 opened 5 years ago

james2406 commented 5 years ago

It looks like reselect-tools do not work if registerSelectors is called from an iframe. redux-devtools supports iframes through the isInIframe function: https://github.com/zalmoxisus/redux-devtools-extension/search?q=isInIframe&unscoped_q=isInIframe

I would be more than happy to work on a PR for this if that's okay with you.

skortchmark9 commented 5 years ago

Sounds good to me! Please do! Could you share a bit more about your use case so I understand?

parties commented 3 years ago

I have a similar need for this; we have an application that uses a plugin interface where separately-hosted React apps are loaded in iframes.

Being able to debug the selectors from within the iframe would be very useful.

As a side note: I can't run these plugins without the parent application due to the plugins needing authentication information, which they can only get from the parent window.