let internalCoreReference; | |
export function __initCore__(core) { | |
if (internalCoreReference) { | |
throw new Error('Core already set'); | |
} | |
internalCoreReference = core; | |
} | |
export function getCore() { | |
if (!internalCoreReference) { | |
throw new Error('Core not set'); | |
} | |
return internalCoreReference; | |
} |
This comment has been minimized.
This comment has been minimized.
where do i put the It seems that it is on the |
This comment has been minimized.
This comment has been minimized.
This example is all client-side new platform plugins. It's not directly applicable to a legacy plugin since that doesn't have a controlled lifecycle. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This comment has been minimized.
and consumer: