Skip to content

Seems debounce do not work #1

Description

@SergeyMiracle

Well i have latest version...
Some base service

export const BaseHttpService = new ApiService({
  adapter: fetch,
  url: process.env.VUE_APP_API_SERVER_URL + '/api',
  mode: 'cors',
  headers: {
    Accept: 'application/json',
    'X-CSRF-TOKEN': store().state.auth.user.csrf
  },
  credentials: 'same-origin'
})
const queue = new ApiSpawner({
          mode: 'debounce',
          time: 500,
          base: BaseHttpService
        })
        queue.spawn({
          url: `search`,
          query: { term: encodeURIComponent(q) }
        })

It just spawns request on every search field change

Also queue.spawn({url: ''}) - would be great if it was possible just call service url queue.spawn({SomeService('updateItem')) - maybe not this way, but u got idea :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions