Buckets:
| export declare class GlobalState<T> { | |
| constructor(initialValue: T); | |
| private _value; | |
| private _hooks; | |
| private _setValues; | |
| _addHook: (hook: (newVal: T) => void) => void; | |
| get: (clone?: boolean) => T; | |
| set: (newVal: T) => void; | |
| use: () => [T, (newState: T) => void]; | |
| useValue: () => T; | |
| onChange: (callback: (newVal: T) => void) => void; | |
| _addSetValueHook: (setValue: any) => void; | |
| } | |
| export declare const createGlobalState: <S>(initialValue: S) => GlobalState<S>; | |
| export declare const useGlobalState: <S>(state: GlobalState<S>) => [S, (newState: S) => void]; | |
Xet Storage Details
- Size:
- 610 Bytes
- Xet hash:
- a3a6288c6976b09e3db9ea156a34f4fd09e2317aba4379b6d7666c6179e4551a
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.