-
Notifications
You must be signed in to change notification settings - Fork 585
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type issues with Unmanaged<T, RequiredProperties> #6037
Comments
@Yupeng-li Thanks for reporting this and for providing a reproduction and workaround! I'll take a look at your suggestions and decide how best to move forward. |
Is this solved yet, I have the same problem. In fact the example https://github.com/mongodb-industry-solutions/Vehicle-Digital-Twin-Feedback-Loop is not working because of this. |
@edhage I believe it hasn't been solve yet |
@kraenhansen apologies for tagging you again 🙏 Yupeng is on holiday and I'm working on updating his 11.1.0 type patch for (https://gist.github.com/Yupeng-li/655eaf75f46086c4345a78e27dfa3c5e) so it works on 12.14.0 so we can get our Realm upgraded. I thought I'd try doing the update as a PR so it gets back into the project but I'm having some issues working out how to run the type testing. I've followed I've found It looks like it might be:
Any pointers would be appreciated! 😄 |
No worries, tag all you want 🙂 Especially if you're contemplating authoring a PR 😉
I think your best bet for now is to build the integration tests package in the hopes that the type utility is used in some test that would fail the build if the type is broken: npm run build --workspace @realm/integration-tests |
That doesn't work, unfortunately. It doesn't look like anything exercises If I break I think I might be able to resurrect |
How frequently does the bug occur?
Always
Description
When using Realm classes, we noticed a few type issues all related to
Unmanaged<T, RequiredKeys>
.RequiredProperties
inRealm.Object<T, RequiredProperties>
, the properties of type Realm.List or Realm.Dictionary are not allowed.RequiredProperties
is not provided when defining the class, the constructor accepts string as values.Realm.create
. It's also reported inUnmanaged
type doesn't cascade through links #5940The details are available in the mini repo I attached.
If anyone is interested, I made a patch to resolve the issue 1 & 3 for now. https://gist.github.com/Yupeng-li/655eaf75f46086c4345a78e27dfa3c5e
Stacktrace & log output
No response
Can you reproduce the bug?
Always
Reproduction Steps
Please check this codesandbox mini repo for details. (Please ignore the browser view on the right hand side. )
Version
11.7 & 11.9
What services are you using?
Local Database only
Are you using encryption?
Yes
Platform OS and version(s)
All
Build environment
Which debugger for React Native: ..
Cocoapods version
No response
The text was updated successfully, but these errors were encountered: