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

Anyway to reinit Fast Render? Re-grab data from HEAD and fill up Minimongo? #190

Open
sferoze opened this issue Apr 11, 2017 · 1 comment

Comments

@sferoze
Copy link

sferoze commented Apr 11, 2017

I am using fast render and it is working normally.

But I am running into an issue, where if I use Meteor.disconnect() and then Meteor.reconnect() minimongo gets cleared out, since I am not using an subscriptions, and only using Fast Render to get data to client.

Upon reconnect Meteor resumes any subscriptions and since there are no subscriptions minimongo gets cleared. But the original fast render data is still in the head of the document. So upon reconnect I would like to reinit Fast Render and fill up minimongo.

I have tried running this code to reinit Fast Render

InjectData.getData('fast-render-data', function(payload) {
  FastRender.init(payload);
});

But for some reason it only loads one document per collection and then stops. Any advice on how to do this?

@Alex509
Copy link

Alex509 commented May 15, 2017

I am looking into it, facing the same issue, iäll let you know if i find something! @sferoze

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

2 participants