Skip to content

Use new start and stop plugin hooks #409

@stockiNail

Description

@stockiNail

Going to beta7 of Chartjs, this version is introducing new hooks on plugin in order to manage better the life cycle of plugins.

I would suggest to move the logic

  • from beforeInit and afterInit to start hook.
  • from destroy to stop hook.

Doing that, you could add the feature to disable and enable the plugin at runtime, during chart lifecyle.

If it makes sense, I can propose the change by PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions