facebookexperimental/Recoil

[React Native] "set" functions don't properly update the state on React Native release builds

オープン

#1,068 opened on 2021/06/13

 (1 件のコメント) (0 件のリアクション) (1 人の担当者)JavaScript (1,151 件のフォーク)batch import
help wantednative

Repository metrics

Stars
 (19,428 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

Using RN 0.64 and Recoil 0.3.1 This code works perfectly in debug mode, but the "setUser" function doesn't do its job on release builds. Using selectors, or simply getting the state from the atom, using useRecoilValue or useRecoilState... nothing works. The app has no specific behavior defined in debug or release mode. So the results should be rigorously the same. image setUser is defined here: image

image

image

コントリビューターガイド