Skip to content

Commit

Permalink
Update effects to callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
ryelle committed Jan 26, 2024
1 parent 7c8458b commit 8fa46b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
<?php if ( $is_mshots ) : ?>
<div
class="wporg-site-screenshot__mshot-container"
data-wp-init="effects.init"
data-wp-watch="effects.update"
data-wp-init="callbacks.init"
data-wp-watch="callbacks.update"
>
<div class="wporg-site-screenshot__loader"></div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const { actions, state } = store( 'wporg/showcase/screenshot', {
}
},
},
effects: {
callbacks: {
// Run on init, starts the image fetch process.
*init() {
const { isMShots, src } = getContext();
Expand Down

0 comments on commit 8fa46b4

Please sign in to comment.