Skip to content

Commit

Permalink
remove errant import
Browse files Browse the repository at this point in the history
  • Loading branch information
a-type committed May 4, 2024
1 parent e1c4784 commit 2201aa2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/react/src/hooks.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ import {
} from 'react';
import { suspend } from 'suspend-react';
import { useSyncExternalStoreWithSelector } from 'use-sync-external-store/with-selector.js';
import { EntityChangeInfo } from '../../store/src/entities/types.js';

function isQueryCurrentValid(query: Query<any>) {
return !(query.status === 'initial' || query.status === 'initializing');
Expand Down Expand Up @@ -121,7 +120,7 @@ export function createHooks<Presence = any, Profile = any>(

function useOnChange(
liveObject: Entity | EntityFile | null,
handler: (info: EntityChangeInfo & { target?: Entity }) => void,
handler: (info: { isLocal?: boolean; target?: Entity }) => void,
options?: { deep?: boolean },
) {
const handlerRef = useRef(handler);
Expand Down

0 comments on commit 2201aa2

Please sign in to comment.