mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-28 04:03:05 +00:00
fix(app): avoid shadowing layout options
This commit is contained in:
@@ -997,14 +997,14 @@ interface WorkspaceLayoutStoreOptions {
|
||||
scheduler?: PersistenceScheduler;
|
||||
}
|
||||
|
||||
export function createWorkspaceLayoutStore(options: WorkspaceLayoutStoreOptions = {}) {
|
||||
const ids = options.ids ?? defaultWorkspaceLayoutIds;
|
||||
export function createWorkspaceLayoutStore(storeOptions: WorkspaceLayoutStoreOptions = {}) {
|
||||
const ids = storeOptions.ids ?? defaultWorkspaceLayoutIds;
|
||||
const persistStorage = createThrottledPersistStorage(
|
||||
createValidatedPersistStorage(
|
||||
options.storage ?? AsyncStorage,
|
||||
storeOptions.storage ?? AsyncStorage,
|
||||
WorkspaceLayoutPersistedStateSchema,
|
||||
),
|
||||
{ intervalMs: WORKSPACE_LAYOUT_PERSIST_INTERVAL_MS, scheduler: options.scheduler },
|
||||
{ intervalMs: WORKSPACE_LAYOUT_PERSIST_INTERVAL_MS, scheduler: storeOptions.scheduler },
|
||||
);
|
||||
const store = create<WorkspaceLayoutStore>()(
|
||||
persist(
|
||||
|
||||
Reference in New Issue
Block a user