does Effect have a number limit?
I mean whether the numbers of createEffect have a limit or official advice?
For instance, In the user authenticating scenario , I have created an effect to set the state as user logged in successful and then set the access token signal, so that resource could be created by the token as the source signal . What's more, there is another effect I have created to refresh the token signal when access token has expired . In this effect, a function will be called to refresh access token and return a valid one when the response of resource implied token expired information. Is two effects or even more in an APP proper?
By the way, which is the better choice between function and async function the second effect? I think normal function is better, because that the token should be refreshed firstly.
Or any other advices?
thanks a lot
1 Reply
No practical limit - beyond the browser running out of memory (probably thousands??).