You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if I have 5 subscriptions on a view, and the 5 of them change,
does the view re-render once, 5, or some other random number of times?
when I pass a map to a component, and I destructure that map in
the arguments and only use keys that don't change, does the component
still re-rerenders when the map changes?
Reagent tracks any dereferences to ratoms made during a component’s render function
render functions are rerun when their input data changes
(defview recovery-phrase []
(letsubs [flow [:hardwallet-flow]]
[react/view
;; is this re-rendered?
[display-recovery-phrase flow]
(if (= flow :create)
[display-recovery-phrase]
[enter-recovery-phrase])]))
(defview recovery-phrase []
(letsubs [flow [:hardwallet-flow]]
[react/view
[display-recovery-phrase flow]
;; is this re-rendered?
[enter-recovery-phrase]]))
Test new reagent, see if this is re-rendered.
Is root subscriptions a good practice or should we now aim for in-place subscriptions?
Acceptance Criteria
GUIDELINES.md file
The text was updated successfully, but these errors were encountered:
Problem
We need to test the following assumptions
if I have 5 subscriptions on a view, and the 5 of them change,
does the view re-render once, 5, or some other random number of times?
when I pass a map to a component, and I destructure that map in
the arguments and only use keys that don't change, does the component
still re-rerenders when the map changes?
Reagent tracks any dereferences to ratoms made during a component’s render function
render functions are rerun when their input data changes
(defview recovery-phrase []
(letsubs [flow [:hardwallet-flow]]
[react/view
;; is this re-rendered?
[display-recovery-phrase flow]
(if (= flow :create)
[display-recovery-phrase]
[enter-recovery-phrase])]))
(defview recovery-phrase []
(letsubs [flow [:hardwallet-flow]]
[react/view
[display-recovery-phrase flow]
;; is this re-rendered?
[enter-recovery-phrase]]))
Test new reagent, see if this is re-rendered.
Is root subscriptions a good practice or should we now aim for in-place subscriptions?
Acceptance Criteria
GUIDELINES.md file
The text was updated successfully, but these errors were encountered: