Open alejo-acevedo-deel opened 1 year ago
Hi - which version of our SDK are you using? And are you seeing this in the Development or Production environment?
Sorry, what do you mean by "randomly"? Is any navigation happening? Is the page just sitting idle?
Hi - which version of our SDK are you using? And are you seeing this in the Development or Production environment?
I am using "@interval/sdk": "^0.36.0"
at development enviroment
Sorry, what do you mean by "randomly"? Is any navigation happening? Is the page just sitting idle?
When you recharge the page, the getAllUsers method is called many time when with just one call would be enough
I am using a Page component to show a table, into the handler of the Page I am calling a function to query a DB and this function is called many times ramdomly which could be a bit problematic
Example:
getAllUsers()
is being called many timesSolution
Handler should be executed only once at the moment of render the page, or even better it would be nice have a way to control it. At least it would be necessary have a some explanation on the documentation when and why the handler function is executed.