update
This commit is contained in:
1 parent
d9363d3b93
commit
a668b3b840
13 files changed
+554
-145
No files matched your search
@@ -0,0 +1,15 @@
|
||||
const dataStorage: any = {};
|
||||
|
||||
export default function useDataBus() {
|
||||
return {
|
||||
set(key: string | number, value: any) {
|
||||
dataStorage[key] = value;
|
||||
return value;
|
||||
},
|
||||
get(key: string | number) {
|
||||
const value = dataStorage[key];
|
||||
dataStorage[key] = undefined;
|
||||
return value;
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user