rememberQuery
Remember a QueryObject and subscribes to the query state of key.
Return
A QueryObject each the query state changed.
Parameters
Type of data to retrieve.
The configuration for the query. By default, it uses the QueryConfig.Default.
The QueryClient to resolve key. By default, it uses the LocalQueryClient.
Remember a QueryObject and subscribes to the query state of key.
Return
A QueryObject with selected data each the query state changed.
Parameters
Type of data to retrieve.
Type of selected data.
A function to select data from T.
The configuration for the query. By default, it uses the QueryConfig.Default.
The QueryClient to resolve key. By default, it uses the LocalQueryClient.
Remember a QueryObject and subscribes to the query state of key1 and key2.
Return
A QueryObject with transformed data each the query state changed.
Parameters
Type of data to retrieve from key1.
Type of data to retrieve from key2.
Type of data to transform.
The configuration for the query. By default, it uses the QueryConfig.Default.
The QueryClient to resolve key1 and key2. By default, it uses the LocalQueryClient.
Remember a QueryObject and subscribes to the query state of key1, key2, and key3.
Return
A QueryObject with transformed data each the query state changed.
Parameters
Type of data to retrieve from key1.
Type of data to retrieve from key2.
Type of data to retrieve from key3.
Type of data to transform.
The configuration for the query. By default, it uses the QueryConfig.Default.
The QueryClient to resolve key1, key2, and key3. By default, it uses the LocalQueryClient.
Remember a QueryObject and subscribes to the query state of keys.
Return
A QueryObject with transformed data each the query state changed.
Parameters
Type of data to retrieve.
Type of data to transform.
The configuration for the query. By default, it uses the QueryConfig.Default.
The QueryClient to resolve keys. By default, it uses the LocalQueryClient.