Skip to content

Conversation

@mzorz
Copy link
Contributor

@mzorz mzorz commented Aug 2, 2018

While looking to replace and find a function in GB that would generate IDs, realized we should completely use GB's createBlock function instead of the mocked up buildEmptyBlock I was using.

This PR removes the use of the mocked up method and uses import { createBlock } from '@wordpress/blocks'; to actually create a new block when the + icon is pressed on any of the items toolbar.

This was referenced Aug 2, 2018
@mzorz mzorz requested review from daniloercoli and hypest August 2, 2018 20:32
@daniloercoli
Copy link
Contributor

Looks good!

@daniloercoli daniloercoli merged commit 5e392d5 into try/inserter-take1 Aug 3, 2018
@daniloercoli daniloercoli deleted the try/inserter-use-create-block-gb branch August 3, 2018 12:43
hypest pushed a commit that referenced this pull request Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants