SolidJSS
SolidJSโ€ข2y agoโ€ข
3 replies
gsoutz

If I am using a singleton class why would I use a context

class ProfileStore {

    active_user: Signal<string> = makePersistent(createSignal('hello'))

}


export default new ProfileStore()


For example what is wrong with the above method.
Was this page helpful?