aksonov / aksonov/react-native-router-flux

Is it bad practice to use Actions.replace('scene'); or type='replace' everywhere?

オープン
#3,533 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
8.9k
フォーク
2.1k
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi all,

Just curious if this was bad practice for some reason? By doing this, I've solved an issue I had with screens that contain large amounts of data being updated by redux that weren't unmounting. Replace ensures things are being unmounted and a fresh new instance of the screen loads every time.

Before I move forward with this, is there a reason this might be bad practice?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。