Skip to content

0.4.5 breaking change (throttleOptions) #163

@askart

Description

@askart

this code was ok in 0.4.4 version

v-observe-visibility="{
  callback: callback,
  throttle: 300,
  once: true,
}

but doesn't work in 0.4.5 if you do not add throttleOptions: {leading: 'hidden'} to directive

Error in directive observe-visibility bind hook: "TypeError: Cannot read property 'leading' of undefined"

solved issue by adding throttleOptions

v-observe-visibility="{
  callback: callback,
  throttle: 300,
  throttleOptions: {
    leading: 'hidden',
  },
  once: true,
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions