make "You" button in navbar show up w/o refreshing page
Some checks failed
deploy / deploy (push) Has been cancelled
Some checks failed
deploy / deploy (push) Has been cancelled
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
// useStore.ts
|
||||
import { useEffect, useState } from "react";
|
||||
|
||||
export const useStore = <T, F>(
|
||||
const useStore = <T, F>(
|
||||
store: (callback: (state: T) => unknown) => unknown,
|
||||
callback: (state: T) => F,
|
||||
) => {
|
||||
@ -13,3 +14,5 @@ export const useStore = <T, F>(
|
||||
|
||||
return data;
|
||||
};
|
||||
|
||||
export default useStore;
|
Reference in New Issue
Block a user