Issue Overview
You can follow this example from Gutenberg handbook.
After post edit page reload, block not displaying fetched data from API if window width bigger than 782px and get stuck in loading state. In safari if i go back to pages and open this page again data is appeared. I noticed that if window width > 782px edit method of wp.blocks.registerBlockType is called twice.
Steps to Reproduce (for bugs)
- Create block with HOC withAPIData (example)
- Add this block in editor
- Save post
- Reload page
Chrome, Firefox, Safari
Issue Overview
You can follow this example from Gutenberg handbook.
After post edit page reload, block not displaying fetched data from API if window width bigger than 782px and get stuck in loading state. In safari if i go back to pages and open this page again data is appeared. I noticed that if window width > 782px edit method of wp.blocks.registerBlockType is called twice.
Steps to Reproduce (for bugs)
Chrome, Firefox, Safari