Skip to main content

One post tagged with "composition api"

View All Tags

· One min read
Hreniuc Cristian-Alexandru

I was using composition API and I had an object/store that I wanted to reset on client logout. I found that I can do it like this:

const company = reactive(new Company());

// Used when we re-login or on logout.
export class CompanyUtil {
public static clear() {
Object.assign(company, new Company());

export default company;