Frage

i am loading data from server and then in the next scene i am displaying that data in a list. But when i upload some new data in that case i need to restart my app from main.lua to show the new posts to users. I just have tried the following code:

storyboard.gotoScene("main","fromRight");
War es hilfreich?

Lösung

You can reload/restart your scene using this:

storyboard.reloadScene()

This Link can probably help you.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top