Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initializing state variables before subscriptions are run. #8

Open
oceddi opened this issue Jan 8, 2015 · 0 comments
Open

Initializing state variables before subscriptions are run. #8

oceddi opened this issue Jan 8, 2015 · 0 comments

Comments

@oceddi
Copy link

oceddi commented Jan 8, 2015

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....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant