Best Practices for Accessing Effect Runtime in React
I was wondering what y`all would consider the correct way to access an Effect Runtime in react.
The way I'm currently doing it is by shoving the runtime into a Zustand store and accessing it from there as-if it was global this setup works but I'd like to know if there is a recommended or better way to do this.
I'll provide the code for ref in the thread since discord limits the message length.
The way I'm currently doing it is by shoving the runtime into a Zustand store and accessing it from there as-if it was global this setup works but I'd like to know if there is a recommended or better way to do this.
I'll provide the code for ref in the thread since discord limits the message length.
