UNPKG

get-svelte

Version:

A simple, powerful state management library for Svelte applications, inspired by GetX for Flutter

25 lines (24 loc) 615 B
/** * A utility class that acts as a bridge for calling lifecycle methods on controllers. * It stores references to controller lifecycle methods and provides a way to invoke them. */ export class InnerCaller { /** * Calls the close lifecycle method on the associated controller */ callClose() { this.close(); } /** * Calls the initialization lifecycle method on the associated controller */ callInit() { this.init(); } /** * Calls the ready lifecycle method on the associated controller */ callReady() { this.ready(); } }