Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add onError and onRender callbacks #1636

Merged
merged 6 commits into from
Nov 12, 2024
Merged

feat: add onError and onRender callbacks #1636

merged 6 commits into from
Nov 12, 2024

Conversation

Caele
Copy link
Collaborator

@Caele Caele commented Nov 2, 2024

Motivation

Adds on error and on render callbacks to the nebbie.render call.
Exposes internal render errors as RenderError + originalError

Original motivation is to make it easier for QlikEmbed to be debugged as currently any error during the loading process of the chart is just swallowed. Only tested initially with those types of errors, but could be expanded to let charts expose their own error handling as well.

Requirements checklist

  • Api specification
    • Ran yarn spec
      • No changes OR API changes has been formally approved
  • Unit/Component test coverage
  • Correct PR title for the changes (fix, chore, feat)

When build and tests have passed:

  • Add code reviewers, for example @qlik-oss/nebula-core

@Caele Caele marked this pull request as ready for review November 4, 2024 07:29
@Caele Caele requested a review from a team November 4, 2024 07:29
apis/nucleus/src/viz.js Outdated Show resolved Hide resolved
Co-authored-by: Johan Lahti <[email protected]>
@Caele Caele merged commit 639204d into main Nov 12, 2024
10 checks passed
@Caele Caele deleted the tsm/add-on-error branch November 12, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants