kadirahq / fast-render

Render you app even before the DDP connection is live. - magic?
MIT License
560 stars 80 forks source link

Bug? Duplicate items within collectionData collection array #155

Open tomwasd opened 8 years ago

tomwasd commented 8 years ago

I haven't quite wrapped my head around how fast-render works so apologies if I've misunderstood something and this is just how it works.

If you go to https://kadira.io and login then, in the console, do:

FastRender.debugger.blockDDP() FastRender.debugger.getPayload()

Under collectionData and kadira_settings I have nine array elements all with exactly the same data.

I was noticing this issue on my own site where I seem to have duplicate user data in the users array - I have the same user object encoded multiple times within <script type="text/inject-data">

Just wondering if this is just how fast-render works, if I'm misusing something or if it's a bug.