The team is now working on the WordPress Interactivity API. This unblocks the same UX Frontity framework enabled but directly in WordPress Core, fully compatible with the new Site Editor.
Right now populate function just accepts a Response as an argument and it’d be great to accept a json too.
User Stories
As a Frontity developer
I want to pass a json to populate function
so that I can populate the state the same way as Frontity does for my custom needs
Possible solution
We could add a parameter to populate function named json and if it is passed, ignored the Response.json().
luisherranz2
We’re going to get rid of populate in the v2 of source. Should we close this?
SantosGuillamot3
Yes, I think it makes sense to close this.
Btw, sorry for the late reply but I didn’t get notified properly of this one. Not sure why but maybe as it was an old topic, and I suscribed to the category later, I wasn’t tracking this one, I don’t know.