-
Notifications
You must be signed in to change notification settings - Fork 249
Bundle collection in window.__INITIAL_STATE__ #92
Comments
I think we have two issues here, so I am going to open a new one for the bug, and keep this one as a feature request. I already thought about embeding collections directly, but for now I use statinamic on a website with hundreds of posts, so I was thinking that could be better to not include collection in all pages, but well, since user is supposed to only call ONE html pages per session, should be embed. (The real issue is that rendering collections from json and from node cache does not give the same thing, which lead to a react warning: #96) |
No, there is no different between collections from json and from node cache. On a slow connection, you could see the splash between |
Oh right. So I will change this. You are right. |
I followed your instruction on create a collection page here
Here is my collection source code
But React will throw a warning:
Demo: http://khoanguyen.me (open your console)
After poking around your code, I see the issue is from this line
https://github.com/MoOx/statinamic/blob/master/src%2Fstatic%2Fto-html%2Furl-as-html.js#L75
Is it posible that we could pass an option to bundle
collection
inINITIAL_STATE
on specific page ?The text was updated successfully, but these errors were encountered: