appyx
appyx copied to clipboard
Move initialElements into constructor
Description
initialElements
are used only during creation process. Making it val
makes them to be captured for the all lifetime of NavModel
, making it a small memory leak.
We can keep the old implementation if you think API became worse.
Fixes https://github.com/bumble-tech/appyx/issues/193
Check list
- [ ] I have updated
CHANGELOG.md
if required. - [ ] I have updated documentation if required.