mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-30 17:47:28 +01:00
fix: improves the loading of stats between page changes (#2985)
This commit is contained in:
@@ -73,7 +73,11 @@ export function useSimpleRefHistory<T>(source: Ref<T>, options: UseSimpleRefHist
|
||||
{ deep },
|
||||
);
|
||||
|
||||
return history;
|
||||
const reset = ({ initial = [] }: Pick<UseSimpleRefHistoryOptions<T>, "initial">) => {
|
||||
history.value = initial;
|
||||
};
|
||||
|
||||
return { history, reset };
|
||||
}
|
||||
|
||||
export function hashCode(str: string) {
|
||||
|
||||
Reference in New Issue
Block a user