-
Notifications
You must be signed in to change notification settings - Fork 584
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Mismatch type when passing user
from useUser
as parameter
#6196
Comments
@maichongju Thanks for reporting! It seems using |
Using realm 12.3.1 and @realm/react 0.6.2 (the version when this should have been fixed) the error still persists when I use Realm.User as a type for function parameter and the value from useUser().
|
@takameyer Okay, it seems that this happens when I use the following import
but it works when I use the following type
|
I'll be taking over this issue and try to reproduce it 👍 |
user
from useUser
as parameter user
from useUser
as parameter
How frequently does the bug occur?
Always
Description
As the documentation suggested, we can pass the
user
to a function.However, when passing the
user
fromuseUser()
. following error display.Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
file1.ts
file2.ts
Version
"realm": "^12.2.1",, "@realm/react": "^0.6.0",
What services are you using?
Atlas App Services: Functions or GraphQL or DataAPI etc
Are you using encryption?
No
Platform OS and version(s)
Win11 23H2
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: