Replace effect with memo and make the value mandatory which simplifies its usage.
Depends on D10663
Flow
Nit: this can be slightly simplified
Simplify
Rebase