Skip to content

emit reset event #478

@mrdiego-dev

Description

@mrdiego-dev

🆒 Your use case

i need a way to know when the reset of resetInterval is called because on the manage display when i click on it, it does add the token and change the value, but when the reset happen sthe value stays the same but on the UI it shows to click again on the challenge

🆕 The solution you'd like

maybe just to add something like this

const emit = defineEmits<{
  (name: 'update:modelValue', token: string): void
  (name: 'reset'): void
}>()

const reset = () => {
  if (id) {
    emit('reset')
    _reset(id)
  }
}

🔍 Alternatives you've considered

No response

ℹ️ Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions