I have a window variable accessible in my webview like window.x
Android/iOS is changing the value of x
based on certain conditions, problem is this value changes but react is not able to rerender based on said change since its not a state.
Is there any way to fire a callback when this value changes without polling it continuously?