Pregunta

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");
¿Fue útil?

Solución

You can reload/restart your scene using this:

storyboard.reloadScene()

This Link can probably help you.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top