Kenneth Geisshirt

Results 187 comments of Kenneth Geisshirt

@myou11 Thank you for reporting. As both `Realm.List` and `Realm.Results` mimics `Array`, `undefined` is returned if you are out of bound. The TypeScript definition needs to be fixed.

After studying it a bit more careful, I think the type is correct. From the [discussion](https://github.com/microsoft/TypeScript/issues/13778), it is on purpose that `ReadonlyArray` doesn't have `T | undefined` as return type...

> Is there a way to get something like this for `Realm.List` and `Realm.Results`? Just to be clear, you only want it for `Realm.List` and `Realm.Results`? I mean, `noUncheckedIndexedAccess` affects...

Your proposed solution makes sense as it sets `this` to a proper value instead of an empty object (`{}`).

We are planning to rethink the Flexible Sync API, and I don't see we need to investigate further on this issue until then.

Previous work: https://github.com/realm/realm-js/pull/3954 The branch is much behind `master` which means the change set looks larger that it actually is.

@iprabin Thank you for reporting. I have a couple of questions: * Do you only observe the crash on iOS (and not Android)? * If you don't put the app...

> We are using a BLE device and we need the app to run on the background When investigating https://github.com/realm/realm-js/issues/4525 we tried to simulate the above (the reporter's app is...