Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: rework handlers #178

Merged
merged 18 commits into from
Feb 6, 2021
Prev Previous commit
Next Next commit
chore: revert
  • Loading branch information
prevwong committed Feb 5, 2021
commit 96f48e570c0cd9e28f49604fe2cf6c9a41a2db65
5 changes: 1 addition & 4 deletions packages/utils/src/useCollector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ export function useCollector<
let unsubscribe;
if (collectorRef.current) {
unsubscribe = subscribe(
(current) => {
(window as any).state = current;
return collectorRef.current(current, query);
},
(current) => collectorRef.current(current, query),
(collected) => {
setRenderCollected(onCollect(collected));
}
Expand Down