Skip to content

Commit

Permalink
docs: expose lodash.debounce function in playroom (#2596)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamstankiewicz authored Sep 6, 2023
1 parent 1e399d9 commit 0ef92d9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions www/playroom/scope.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {
useRef,
useState,
} from 'react';
import debounce from 'lodash.debounce';

// This object is inserted into the global scope of the Playroom editor.
// We expose the React methods here as they're often used in examples assuming
Expand Down Expand Up @@ -46,5 +47,6 @@ export default function useScope() {
useReducer,
useRef,
useState,
debounce,
};
}

0 comments on commit 0ef92d9

Please sign in to comment.