Giter Site home page Giter Site logo

Android: Setting recoil state yields "ownKeys target is non-extensible but trap result keys differ from target keys" on v12 about realm-js HOT 9 CLOSED

mattlewer avatar mattlewer commented on June 15, 2024
Android: Setting recoil state yields "ownKeys target is non-extensible but trap result keys differ from target keys" on v12

from realm-js.

Comments (9)

mattlewer avatar mattlewer commented on June 15, 2024 1

Yep, Hermes is enabled on both

podfile:
:hermes_enabled => true

gradle.properties:
hermesEnabled=true

Also, if it helps:
RN Version: "0.72.6"
realm: "12.5.0"
@react/realm: "0.6.2"
recoil: "0.7.6"

from realm-js.

kraenhansen avatar kraenhansen commented on June 15, 2024 1

It would be great if you could create an issue with the recoil repository too, I suspect it is their Proxy throwing this.

from realm-js.

mattlewer avatar mattlewer commented on June 15, 2024 1

Unfortunately there has been no reply from the Recoil repo guys. The package has not been updated in almost a year and allegedly the lead dev has been let go by Meta. As a result we are in the process of switching from using Recoil to another method (useContext).

Not sure where this leaves this bug as technically it is still a problem, but not one that looks like it will be solved soon if it is indeed the Recoil side causing these issues. Using useContext we do not face this issue.

from realm-js.

kneth avatar kneth commented on June 15, 2024 1

@mattlewer Thank you for getting back to us.

I am happy to hear that you have found an alternative solution. I agree, it is unlikely that the issue will be fixed. I will leave the issue open for other users to find it in case they run into the same situation - and can learn from your solution.

from realm-js.

kraenhansen avatar kraenhansen commented on June 15, 2024

Thanks for reporting the issue and providing source-code to help us reproduce it!
While I haven't verified the bug myself, this does seem like a use-case that we'd like to support, although we don't explicitly test for it.

Are you explicitly mentioning Android, because this doesn't occur on iOS or is it simply because that's the only platform you've tested on? If the latter is the case, I'd like to update the title to be more precise - for example:

Setting recoil state yields "ownKeys target is non-extensible but trap result keys differ from target keys" on v12

from realm-js.

mattlewer avatar mattlewer commented on June 15, 2024

Are you explicitly mentioning Android, because this doesn't occur on iOS or is it simply because that's the only platform you've tested on? If the latter is the case, I'd like to update the title to be more precise - for example:

Setting recoil state yields "ownKeys target is non-extensible but trap result keys differ from target keys" on v12

Thank you for your quick response, this appears to only occur on Android, strangely iOS is working fine :)

from realm-js.

kraenhansen avatar kraenhansen commented on June 15, 2024

Just to be sure, are you testing with Hermes enabled on both iOS and Android?

from realm-js.

kraenhansen avatar kraenhansen commented on June 15, 2024

Might be related to facebook/hermes#1063

from realm-js.

nirinchev avatar nirinchev commented on June 15, 2024

Closing this as there's nothing obvious left for us to do here.

from realm-js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.