Setting/getting temporary state is asynchronous?

This doesn't seems like working when you import the app as module and run from parent app. Is it by design or a bug?