Is it possible to control global context state externally?

I have specific behavior that works like this:

  • ContextProvider has prop “X”
  • Component has specific prop that is validated against “X” and can detect if user has misconfigured “X”.
    I want to have a button in Component props (inside custom component props sidebar) that is able to set ContextProvider’s prop to proper “X” for better user experience

Unfortunately, I’m unable to do it even with hacks. I thought I can do it with custom components (to expose updateValue globally, but when I try to do a custom component, I’m getting an error I reported here: Custom props are crashing in global contexts

Hello @merkle_bonsai,

There is currently no way of controlling Global Context props from other components.