Skip to content

Commit

Permalink
Merge pull request #2766 from wordpress-mobile/try/jetpack-blocks-reg…
Browse files Browse the repository at this point in the history
…ister-on-render

Move the setupJetpackEditor() call order
  • Loading branch information
mzorz authored Nov 4, 2020
2 parents 96a7f64 + 4d378dc commit 87cbeb8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,12 @@ import correctTextFontWeight from './text-font-weight-correct';
import setupJetpackEditor from './jetpack-editor-setup';
import initialHtml from './initial-html';

addAction( 'native.pre-render', 'gutenberg-mobile', ( props ) => {
addAction( 'native.pre-render', 'gutenberg-mobile', () => {
require( './strings-overrides' );
correctTextFontWeight();
} );

addAction( 'native.render', 'gutenberg-mobile', ( props ) => {
setupJetpackEditor(
props.jetpackState || { blogId: 1, isJetpackActive: true }
);
Expand Down

0 comments on commit 87cbeb8

Please sign in to comment.