New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why emitter will call unstoppable while use group to give some params; #18
Comments
Hi @CalsRanna , I think this is because creator library checks the argument array using
In your first example, a new map object is created in every build, and they are not equal to each other. You could put the {'page': 1, 'pageSize': 50} object in a variable outside the Watcher or build function, then it should work. In your second example, it works because it is simple type and we effectively check |
Or you could use |
Ah, i see. Here's another wondering. |
If only one argument is provided, people need to define a small data class and implement |
Got it. THX. |
Here's the problem i met.
I need to fetch datas from backend through http, so i write an emitter to fetch datas like this:
when i use watch to fetch datas, it will call the api unstoppable even the data has been fetched.
Then i find a solution to solve this for temp.
And the problem solved.
But it confuse me why this problem will occured, and maybe you guys can explain this or something.
Creator is a good state manager, it's simple to understand and use.Hope it goes well.
The text was updated successfully, but these errors were encountered: