Comments (7)
@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.
@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.
@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.
@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.
@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.
@jamonholmgren fixed by https://github.com/infinitered/ignite-ir-boilerplate/pull/146
from ignite-andross.
@dodedodo33 force to you ! ๐
from ignite-andross.
Related Issues (20)
- andross update to latest vesion ? HOT 3
- Check the render method of 'NavigatorReduxWrapper'. HOT 6
- RN60+ issue for Andross project HOT 4
- Example gives cannot read property 'includes' of undefined HOT 2
- Crash after upgrade to 0.61 HOT 1
- Andross is not actual - problem with andoidx
- [Bug] Can not Create new Project on Windows 10 HOT 8
- Command failed : gradlew.bat app:installDebug. when run react-native run-android HOT 4
- console.tron.log is undefined HOT 9
- TypeError: undefined is not an object (evaluating '_reactNavigation.ThemeColors.light') HOT 27
- failed to add React Native 0.61.4 HOT 1
- Problem with storyBook
- Error Occured while running npx react-native run-android command
- Error: `createStackNavigator()` has been moved to `react-navigation-stack`. HOT 2
- currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
- How to ingnite-andross use TypeScript when init project?
- Add config option to remove Redux Navigation
- Errors while running `npx react-native run-ios`. Afte resolving errors, Andross rendering correctly on Android, but not on iOS
- generate list didnt show any option
- APIs are not called in background - ios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ignite-andross.