watch-party/frontend/lib/state.mjs

7 lines
114 B
JavaScript

let instance = null;
export const state = () => {
if (!instance) {
instance = {};
}
return instance;
};