Closed ilikejames closed 3 years ago
This is fixed in 0.6.1 so just looking for advice on this, and whether a fix can be patched into 0.5.x Affects versions >0.4.3 <0.6.1
0.6.1
0.5.x
const [useRequiresTheArray] = bind((s: string, a: string[]) => { return of(a.join(s)); });
is fine, but
const [useRequiresTheArray] = bind((s: string, ...a: string[]) => { return of(a.join(s)); });
Warning: The final argument passed to useEffect changed size between renders. The order and size of this array must remain constant.
Example Code
Patched on 0.5.2
Brilliant!
This is fixed in
0.6.1
so just looking for advice on this, and whether a fix can be patched into0.5.x
Affects versions >0.4.3 <0.6.1is fine, but
Example Code