Skip to content

Commit

Permalink
move to a better place
Browse files Browse the repository at this point in the history
  • Loading branch information
CrabNejonas authored Nov 23, 2023
1 parent 727c46b commit 0e79234
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/solid/src/reactive/signal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,6 @@ export function createSignal<T>(
return [readSignal.bind(s), setter];
}

// keep immediately evaluated module code, below its dependencies like Listener & createSignal
const [transPending, setTransPending] = /*@__PURE__*/ createSignal(false);

export interface BaseOptions {
name?: string;
}
Expand Down Expand Up @@ -1075,6 +1072,9 @@ export function startTransition(fn: () => unknown): Promise<void> {
});
}

// keep immediately evaluated module code, below its dependencies like Listener & createSignal
const [transPending, setTransPending] = /*@__PURE__*/ createSignal(false);

export type Transition = [Accessor<boolean>, (fn: () => void) => Promise<void>];

/**
Expand Down

0 comments on commit 0e79234

Please sign in to comment.