appyx icon indicating copy to clipboard operation
appyx copied to clipboard

Move initialElements into constructor

Open CherryPerry opened this issue 1 year ago • 0 comments

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.

CherryPerry avatar Oct 11 '22 08:10 CherryPerry