Skip to content

Commit

Permalink
fix: add type to the dependency list of data loading hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mariuslundgard committed Oct 20, 2021
1 parent 715577b commit 920aa58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DocumentListQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export default function DocumentListQuery({type}) {

return () => subscription?.unsubscribe()
/* eslint-disable-next-line react-hooks/exhaustive-deps */
}, [])
}, [type])

const unorderedDataCount = useMemo(
() => (data.length ? data.filter((doc) => !doc[ORDER_FIELD_NAME]).length : 0),
Expand Down

0 comments on commit 920aa58

Please # to comment.