Accept json at populate function


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

We’re going to get rid of populate in the v2 of source. Should we close this?

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.