In ReactNâs useGlobal, if you call useGlobal() instead of specifying the property explicitly as useGlobal("foo"), ReactN will monitor get accesses to the returned global value and addPropertyListener.
So there was no need to be concerned that useGlobal() would cause a redraw on every update. was unnecessary.
This page is auto-translated from /nishio/ReactNăźuseGlobalăŻgetăçŁèŠăă using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. Iâm very happy to spread my thought to non-Japanese readers.