feat: sync api collection will refresh title;perf: invite link ux (#4237)

* update queue

* feat: sync api collection will refresh title

* sync collection

* remove lock

* perf: invite link ux
This commit is contained in:
Archer
2025-03-19 21:03:21 +08:00
committed by archer
parent 73451dbc64
commit 87e90c37bd
44 changed files with 368 additions and 327 deletions

View File

@@ -0,0 +1,25 @@
import { create, devtools, persist, immer } from '../common/zustand';
type State = {
copyContent?: string;
setCopyContent: (val?: string) => void;
};
export const useCommonStore = create<State>()(
devtools(
persist(
immer((set, get) => ({
copyContent: undefined,
setCopyContent(val) {
set((state) => {
state.copyContent = val;
});
}
})),
{
name: 'commonStore',
partialize: (state) => ({})
}
)
)
);