Open a-eid opened 3 years ago
hey @a-eid, shouldn't you be using MergeOptions when you want to change it after setting the DefaultOptions?
It makes sense to me that it'd wipe the other options you've set if you set DefaultOptions a second time.
@AlphaJuliettOmega in some cases you have to use setDefaultOptions
, if I remember correctly you have to use it when setting the direction of the layout or something, if you want I can check and report back.
also actually it specifies in the does that setDefaultOptions
merges with the previous one.
setDefaultOptions()
through merge is very useful for unmount components. Hope can fix it!
🐛 Bug Report
this might not be the case for every options but it is when you set
layout
it does override at least animations.To Reproduce
setDefaultOptions
and set some animationspush
orsetRoot
.layout.direction
rtl | ltr
.Expected behavior
just calling
setDefaultOptions
overrides the animations key set before.Actual Behavior
setDefaultOptions
show merge and not override.Your Environment
Reproducible Demo
https://github.com/a-eid/rnn/tree/bug/setDefaultOptions