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
When querying a single doc, one can pass a singleDocData options so the result.data returned by the query will be an object containing the doc, rather than an array of size 1.
When it's not done, a warning is emitted:
logger.warn('useQuery options.singleDocData will pass to true in a next version of cozy-client, please add it now to prevent any problem in the future.')
saying that a future cozy-client version will implicitly set this attribute, and thus making a breaking change.
While this has been added in a while, this warning remains. We should fulfill this promise eventually.
The text was updated successfully, but these errors were encountered:
When querying a single doc, one can pass a
singleDocData
options so theresult.data
returned by the query will be an object containing the doc, rather than an array of size 1.When it's not done, a warning is emitted:
cozy-client/packages/cozy-client/src/hooks/useQuery.js
Line 51 in 60a1ec5
While this has been added in a while, this warning remains. We should fulfill this promise eventually.
The text was updated successfully, but these errors were encountered: