watch-party/frontend/lib/state.mjs

8 lines
114 B
JavaScript

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