diff --git a/crates/bindings-typescript/src/react/useTable.ts b/crates/bindings-typescript/src/react/useTable.ts index 5d3c1edd86c..6eb5e0cf209 100644 --- a/crates/bindings-typescript/src/react/useTable.ts +++ b/crates/bindings-typescript/src/react/useTable.ts @@ -104,6 +104,8 @@ export function useTable( ) as Prettify[]) : (Array.from(table.iter()) as Prettify[]); 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]); @@ -205,11 +207,14 @@ export function useTable( 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,