Code Monkey home page Code Monkey logo

Comments (7)

coffeeneer avatar coffeeneer commented on July 4, 2024 1

@jamonholmgren You're welcome :) Unfortunately I haven't really had the time to build on this or really test it. So far any reducer updates seemed to correctly reload with this change. I know this works well in react with webpack, but webpack also provides a path for which modules are updated. Where react-native does not. So the optimization of checking the path and only updating the reducers when the path equals '/reducers' or something is not possible if I understand correctly. If I have a bit more spare time I'd be happy to work on this feature as it cuts back on necessary full reloads.

from ignite-andross.

coffeeneer avatar coffeeneer commented on July 4, 2024 1

@L1br3 Sorry for the delayed response.
I'm currently really occupied with other responsibilities, so unfortunately I have not been able to find time for side quests (projects).
Sorry I couldn't be of any help, but nice to see you have found a solution!

from ignite-andross.

jamonholmgren avatar jamonholmgren commented on July 4, 2024

@dodedodo33 Thanks so much for the kind words, and I'm very sorry this issue got missed! This looks really interesting. Do you have any updates to it beyond what you've written here?

from ignite-andross.

Fr33maan avatar Fr33maan commented on July 4, 2024

@dodedodo33 How did you get the component connected to the state ?
I successfully avoided the crash with this solution but the state is never reconnected to the components...

from ignite-andross.

Fr33maan avatar Fr33maan commented on July 4, 2024

@skellock @jamonholmgren
I finally succeded in deleting the error and get the state kept between HMR but there is an issue with reducers, they totally break the app.
I've opened an issue on RN repo, opened a question on SO and created a reproductible repo.
Will PR when I'll have solution

facebook/react-native#16148
https://stackoverflow.com/questions/46490306/react-native-redux-hmr-connect
https://github.com/l1br3/ReactNative-Redux-HMR-Broken

from ignite-andross.

Fr33maan avatar Fr33maan commented on July 4, 2024

@jamonholmgren fixed by https://github.com/infinitered/ignite-ir-boilerplate/pull/146

from ignite-andross.

Fr33maan avatar Fr33maan commented on July 4, 2024

@dodedodo33 force to you ! ๐Ÿ‘

from ignite-andross.

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.