Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Columns: Avoid re-render and subsequent action dispatch by adopting m…
…odule constant (#7720) We were passing a new allowedBlocks reference on each column render. This dispatch additional unnecessary further actions to update inner block settings. allowedBlocks reference should only be changed if, in fact, we are changing the allowedBlocks. In the columns block, we can make allowed block a constant given that it never changes. This problem may cause noticeable lag when writing/using columns because updating the InnerBlock setting may cause another rerender and another rerender updates the settings again. So this change prevents cascade re-renders.
- Loading branch information