-
Notifications
You must be signed in to change notification settings - Fork 121
Add Dumbbell & Tilemap examples, optional module-load timeout, and expanded tests/docs #418
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
base: master
Are you sure you want to change the base?
Add Dumbbell & Tilemap examples, optional module-load timeout, and expanded tests/docs #418
Conversation
@KacperMadej @karolkolodziej thanks in advance for the review ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great stuff! Please just look at my comment
|
||
// Create the chart as soon as we can | ||
private readonly chart = computed(() => { | ||
private readonly chart = computed(async () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IMO, this change (some methods/properties being async) should be listed as a breaking change and described in the readme.
Summary
This PR improves the Highcharts integration by:
Adding Dumbbell and Tilemap examples (requested due to reported issues).
Refs: #417 && #415
Some users hit intermittent “module not attached yet” scenarios—especially with heavier or multiple modules (e.g., map, tilemap, highcharts-more, dumbbell, pattern-fill, gantt). The optional timeout provides a safe buffer so the service only publishes the Highcharts instance once all modules have finished augmenting it. The added examples make it easier for the community to reproduce and verify.
Introducing an optional timeout in the loading pipeline to accommodate modules that need a few extra milliseconds before augmenting the Highcharts namespace.
Expanding test coverage to validate that modules are properly loaded.
Updating the README with examples and troubleshooting notes.
Breaking Changes
None. The timeout is optional and disabled by default. Existing integrations continue to work as before.