You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it was rendered normally when i use data from local json file but it's not render when i fetch contentState from api even its a same data
here a code that i use to fetch data const fetchdata = await fetch('https://test.com/api/story') const jsondata = await fetchdata.json(); this.setState({data:jsondata})
a log from state.data where i save fetched data to {"blocks":[{"key":"d949g","text":"dasfsdaf","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}
a log from local json {"blocks": [{"data": [Object], "depth": 0, "entityRanges": [Array], "inlineStyleRanges": [Array], "key": "d949g", "text": "dasfsdaf", "type": "unstyled"}], "entityMap": {}}
The text was updated successfully, but these errors were encountered:
it was rendered normally when i use data from local json file but it's not render when i fetch contentState from api even its a same data
here a code that i use to fetch data
const fetchdata = await fetch('https://test.com/api/story') const jsondata = await fetchdata.json(); this.setState({data:jsondata})
a log from state.data where i save fetched data to
{"blocks":[{"key":"d949g","text":"dasfsdaf","type":"unstyled","depth":0,"inlineStyleRanges":[],"entityRanges":[],"data":{}}],"entityMap":{}}
a log from local json
{"blocks": [{"data": [Object], "depth": 0, "entityRanges": [Array], "inlineStyleRanges": [Array], "key": "d949g", "text": "dasfsdaf", "type": "unstyled"}], "entityMap": {}}
The text was updated successfully, but these errors were encountered: