Suppose I have (defui App ...)
with IQueryParams
. As soon as I (om.next/add-root! reconciler App app-div)
, the reconciler will ask for the App's query, parse it, fetch remote data, render the component, yada yada. But what I want to do is initialize the App's query params from the URL. How do I make that happen? Do I have to just use ui
instead of defui
to accomplish that?
What I mean is, I don't want the reconciler to ask for the App's query until after I've set the appropriate query params.
Perhaps componentWillMount
is the correct place to hook in to accomplish this?