Docs (4.0.0)
class GlobalContext method

clear

Clears the state of the global application context.

clear(): this

Summary

This method is used to reset the app to its initial state. It’s called automatically by context initialization functions such as useTestContext() and useWebContext(), before setting up a new global context with platform-specific details. The following actions take place:

  1. The current renderer’s output is cleared;
  2. All activities are unlinked;
  3. All services are unlinked;
  4. All scheduler queues are stopped;
  5. The i18n provider is unlinked;
  6. The theme is removed
  7. Log sink(s) are removed;

Related