Closed kimskovhusandersen closed 1 year ago
Great, thank you! 🙏 👍
Just out of curiosity, when can we expect the next release of the library with the recent changes to be published on NPM?
Much appreciated!
Amazing! Thank you very much 👍 🙏
What version of React/React Native are you on? I am seeing this error when using react: 18.2.0
and react-native: 0.71.8
and am using the latest patch v9.3.2
of this package
@anna-rusk that looks like a different error entirely. Mind opening up a new issue with more context? Thanks.
I had this issue open! It was closed recently but I am still facing this issue - I will post more context there
This is to improve the compatibility with React Native and ensure the dispatch function is triggered correctly.
Currently, the code assumes the availability of the "window" object without checking its type, which is causing an issue with the dispatch function in React Native where "window" is not present. 🙅♂️
To fix this, I have added a simple check to ensure the "window" object is defined using typeof window === "undefined". This allows the code to gracefully handle React Native environments and ensures the dispatch function works smoothly in web browser environments. 🚀
Thank you so much for your time and consideration. 🙏