Skip to content

Commit

Permalink
Fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
bloodyowl committed Apr 5, 2024
1 parent 1c3c801 commit 8f5f94a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions example/components/FilmDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,12 @@ export const FilmDetails = ({ filmId, optimize }: Props) => {
{ optimize },
);

const [producers, queryProducers] = useDeferredQuery(ProducersQuery, {
debounce: 500,
});
const [producers, { query: queryProducers }] = useDeferredQuery(
ProducersQuery,
{
debounce: 500,
},
);

useEffect(() => {
// try debounced
Expand Down

0 comments on commit 8f5f94a

Please sign in to comment.