iron-meteor/iron-controller

Initializing state variables before subscriptions are run.

Opened this issue · 0 comments

I want to be able to use an Iron controller to manage pagination variables for a large collection I'm subscribing to. I'm managing the pageNumber/pageSize in IronController state variables but I haven't found a reliable way to initialize these variables BEFORE the subscription request is made from client to server (I want to pass pageNumber and pageSize into the subscription request). None of the hooks seem to get called before the subscriptions hook.

Any ideas on where I can initialize controller state variables for early access? If I place them in the subscriptions function then they keep getting reset back to their original values....