Skip to content

Commit

Permalink
Ensure that scheduler is context object to yield function
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Oct 10, 2024
1 parent 2516cd4 commit a0933f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/interactivity/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export const splitTask =
null !== window.scheduler &&
'yield' in window.scheduler &&
typeof window.scheduler.yield === 'function'
? window.scheduler.yield
? window.scheduler.yield.bind( window.scheduler )
: () => {
return new Promise( async ( resolve ) => {
setTimeout( resolve, 0 );
Expand Down

0 comments on commit a0933f4

Please sign in to comment.