Skip to content

Commit

Permalink
Call init after store has been initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
DAreRodz authored and gziolo committed May 5, 2023
1 parent 142050c commit e65b91e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/block-library/src/utils/interactivity/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export { store } from './store';
* Initialize the Interactivity API.
*/
registerDirectives();
init();
// eslint-disable-next-line no-console
console.log( 'Interactivity API started' );

document.addEventListener( 'DOMContentLoaded', async () => {
await init();
// eslint-disable-next-line no-console
console.log( 'Interactivity API started' );
} );

0 comments on commit e65b91e

Please sign in to comment.