Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

problem when fetch contentState from api #60

Copy link
Copy link

Description

@mikasaloliz
Issue body actions

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": {}}

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.