Skip to content

Instantly share code, notes, and snippets.

@seanrasmussen
seanrasmussen / gist:785e16de516eeef7d42739a952814cd2
Last active October 21, 2016 15:50
nested single JSON object temporary fix
Manually setting the object from the data works....
In AppState
-------------
@action setSingle(data) {
this.item = {
title: data.title.rendered,
content: data.content.rendered
}
}
@seanrasmussen
seanrasmussen / gist:bca07baea498a3b5a52836e1ba4bf957
Created October 20, 2016 20:18
nested single JSON object react/mobx issue
I switched the endpoint for the async call, so it returns this:
The JSON Data
---------------------------------
{
"id": 413,
"date": "2016-09-09T23:29:45",
"date_gmt": "2016-09-09T23:29:45",
"guid": {
"rendered": "http://localhost/sandbox1/quod-nihil-et-quod-qui-fugit/"