gaearon / gaearon/react-deep-force-update

Don't work with react-native 0.64.2

Open
#37 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
120
Forks
19
PR merge metrics
No merged PRs in 30d

Description

Hi, I updated my app to react-native 0.64.2 from 0.63.x and your package don't work on ios release mode.

I have this error in xcode logs :

```
[javascript] TypeError: undefined is not an object (evaluating ‘f.tag’)
This error is located at:
in l
in Connect(l)
in f
in Unknown
```

After some investigations, I use redux-i18n that is using react-deep-force-update

The problem is in :
```
var root = instance._reactInternalFiber || instance._reactInternalInstance;
if (typeof root.tag !== 'number') {
// Traverse stack-based React tree.
return deepForceUpdateStack(instance, shouldUpdate, onUpdate);
}
```

root is undefined and can't find tag property.

thx
Jeremie.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the react-deep-force-update code containing the _reactInternalFiber and _reactInternalInstance lookup, then reproduce the failure in an iOS release build using React Native 0.64.2. Trace why root is undefined and verify that the package no longer throws the reported f.tag error while remaining compatible with the referenced React versions.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react-native
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.