Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions crates/bindings-typescript/src/react/useTable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export function useTable<TableDef extends UntypedTableDef>(
) as Prettify<UseTableRowType>[])
: (Array.from(table.iter()) as Prettify<UseTableRowType>[]);
return [result, subscribeApplied];
// TODO: investigating refactoring so that this is no longer necessary, as we have had genuine bugs with missed deps.
// See https://github.com/clockworklabs/SpacetimeDB/pull/4580.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [connectionState, accessorName, querySql, subscribeApplied]);

Expand Down Expand Up @@ -205,11 +207,14 @@ export function useTable<TableDef extends UntypedTableDef>(
table.removeOnUpdate?.(onUpdate);
};
},
// TODO: investigating refactoring so that this is no longer necessary, as we have had genuine bugs with missed deps.
// See https://github.com/clockworklabs/SpacetimeDB/pull/4580.
// eslint-disable-next-line react-hooks/exhaustive-deps
[
connectionState,
accessorName,
querySql,
computeSnapshot,
callbacks?.onDelete,
callbacks?.onInsert,
callbacks?.onUpdate,
Expand Down
Loading