We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f347657 commit 649ca2dCopy full SHA for 649ca2d
client/src/lib/hooks/usetodo.js
@@ -33,7 +33,9 @@ export default function useTodos () {
33
34
/**
35
* The external store with available useSyncExternalStore-required methods:
36
- * subscribe() - Used and initialized internally by useSyncExternalStore
+ * subscribe()
37
+ * - Used and initialized internally by useSyncExternalStore for subscribing to external store events.
38
+ * - This should return a clean-up function like in useEffect() with empty dependency arrays.
39
* getSnapshot() - Returns the current (full) snapshot of the global data variable
40
* getServerSnapshot() - Used in SSR
41
*/
0 commit comments