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 committed May 4, 2023
1 parent c6d02d8 commit af55917
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 af55917

Please sign in to comment.