Closed softwarerero closed 10 years ago
Hey @softwarerero
IR is designed to run the data function reactively. Specifically as your data loads (e.g. user info from the server's user publication, then "Mandant" data however that is published), the data function will re-run each time as it has more data available.
If you want to count the number of times, I would suggest using the load
hook, which is guaranteed to run just once per route.
I have a route which needs to increment a counter in the db and put in the data hash. With the code below I see that my helper function is called 3 times and my code provokes an endless loop. Is it me doing wrong or the router?