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
After doing that useQuery hook types used on this line break with the following error:
Argument of type 'typeof Task' is not assignable to parameter of type 'string | ((new () => Task) & ObjectClass<any>)'.
Type 'typeof Task' is not assignable to type '(new () => Task) & ObjectClass<any>'.
Type 'typeof Task' is not assignable to type 'new () => Task'.
Types of construct signatures are incompatible.
Type 'new (realm: Realm, values: Unmanaged<unknown>) => Task' is not assignable to type 'new () => Task'.
After reading changelog for v11.0.0 it feels like the change to Class-based models might have caused the typing change in useQuery as well (which is not intended?).
Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
@realm/react: 0.3.2; realm: 11.0.0-rc.1
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
React Native (Expo)
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered:
Thank you! I can confirm that it works with 0.4.0-rc.0 version of @realm/react, please feel free to close the issue when it's best, now or after the 0.4.0 release.
How frequently does the bug occur?
All the time
Description
The easiest way to reproduce the issue is to use expo realm template and upgrade realm packages to the latest versions:
After doing that
useQuery
hook types used on this line break with the following error:For reference, previous
useQuery
type was:After reading changelog for v11.0.0 it feels like the change to Class-based models might have caused the typing change in
useQuery
as well (which is not intended?).Stacktrace & log output
No response
Can you reproduce the bug?
Yes, always
Reproduction Steps
No response
Version
@realm/react: 0.3.2; realm: 11.0.0-rc.1
What SDK flavour are you using?
Local Database only
Are you using encryption?
No, not using encryption
Platform OS and version(s)
React Native (Expo)
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: