I have a page where a button gets clicked, calls a server side method, and then immediately routes to the next page. The next page has helpers that rely on data that’s supposed to be created by the server method that was called, but none of the helpers on the new page load any data whatsoever. Instead the helpers, ex. a helper called ‘timeleft’, give me errors like this:
timeleft failed: TypeError: Cannot read property ‘_id’ of undefined
however, if i refresh the page, the helpers load just fine. I can’t tell if this is a problem with the iron router itself, or if the server method is simply slower than the page route. I feel like its the latter. If so, how can I delay my new page from rendering or loading until I can confirm that the values needed are created? Or does iron router do something to the way helpers are supposed to load?