refactor/code-splitting #31

Merged
ilia merged 32 commits from refactor/code-splitting into main 2026-04-08 06:34:20 +00:00
Showing only changes of commit a1a1fcf39d - Show all commits

View File

@@ -117,6 +117,11 @@ export abstract class BaseFontStore<TParams extends Record<string, any>> {
return this.result.isError;
}
/** The error from the last failed fetch, or null if no error. */
get error(): Error | null {
return this.result.error ?? null;
}
/** Whether no fonts are loaded (not loading and empty array) */
get isEmpty() {
return !this.isLoading && this.fonts.length === 0;