I’m trying to reload composer scenes. What’s happening is that the user can delete UI elements which results in the layout needing to be redrawn. Sometimes there are parameters to be preserved between these reloads - for instance the scene to return to when done, or filters to apply to the layout.
The issue I’m having is that after calling:
-- inside scenes.myscene:show function someUIWhichModifiesLayout:tap() ... change data composer.removeScene("scenes.myscene") composer.gotoScene("scenes.myscene",{params=\_.clone(params,false)}) end)
The event.params field will always be nil. Am I doing something wrong or is there an issue with composer? I’m tempted to try introducing an intermediary router scene to see if that resolves the issue - something which just calls gotoScene with arguments and parameters specified by the caller to see if that works…