You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This may be a bit specific to a certain use-case / library, but figured I'd report it anyway. If you check out this codesandbox and right click anywhere in the "Euros" column header or context menu, easy-peasy throws an error due to the store being undefined.
The error comes from the <Foo /> component which consumes store state via the useStoreState hook. I can easily work around this by just passing in the state I need, but found this interesting.
The context menu is rendered inside a portal, and I thought maybe this has something to do with it, but its odd that its only on the "contextmenu" event that this seems to happen. Otherwise, the component is working fine and is clearly subscribed to the store.
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered:
Ah, so when its rendered via a left-click it's still within App's tree, but when you right-click it sits alongside App which explains why store seemed to only be undefined on right-click. This helps, thanks @jmyrland.
This may be a bit specific to a certain use-case / library, but figured I'd report it anyway. If you check out this codesandbox and right click anywhere in the "Euros" column header or context menu, easy-peasy throws an error due to the store being undefined.
The error comes from the
<Foo />
component which consumes store state via theuseStoreState
hook. I can easily work around this by just passing in the state I need, but found this interesting.The context menu is rendered inside a portal, and I thought maybe this has something to do with it, but its odd that its only on the "contextmenu" event that this seems to happen. Otherwise, the component is working fine and is clearly subscribed to the store.
Any ideas?
Thanks!
The text was updated successfully, but these errors were encountered: