You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Executes a query on a local SQL database and returns the {@link AsyncState} corresponding to the query of the command. The last value will be kept between command runs.
* The hook expects to iterate through an array of data, so by default, it assumes the JSON it receives itself represents an array. However, sometimes the array of data is wrapped in an object,
166
166
* i.e. `{ "success": true, "data": […] }`, or even `{ "success": true, "results": { "data": […] }}`. In those cases, you can use `dataPath` to specify where the data array can be found.
167
-
*
167
+
*
168
168
* @remark If your JSON object has multiple arrays that you want to stream data from, you can pass a regular expression to stream through all of them.
169
169
*
170
170
* @example For `{ "success": true, "data": […] }`, dataPath would be `data`
@@ -423,7 +423,7 @@ export function useStreamJSON<T, U extends any[] = any[]>(
0 commit comments