Documentation

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 application context with platform-specific details. The following actions take place:

  1. All activities are unlinked and removed;
  2. The current renderer’s output is cleared;
  3. The task queue is cleared;
  4. Log sink handlers are removed;
  5. The i18n context is cleared, and the current locale is reset;

Related