Skip to content
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

Warn developer via console if doLoadAsync called multiple times in quick succession #3624

Open
amcclain opened this issue Apr 4, 2024 · 0 comments

Comments

@amcclain
Copy link
Member

amcclain commented Apr 4, 2024

Unintentional doubled-up loads are an easy problem to create with competing reactions, debounces, and automatic load-on-mount for linked models, and they can be tricky to catch as if you're not looking at the network traffic everything in the app can appear to be a-OK, despite having doubled the load on the server.

Should we detect such a situation and throw a console warning, potentially only in development mode, to aid developers in catching such cases - without having to put any bigger stake in the ground as to what is / is not acceptable or must be a mistake?

If we had such a warning, would we need a way to suppress it, either globally or for a single model? (In case there was some very valid reason for it and the warning was deemed spurious / obnoxious.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant