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

[draft] feat: onAltGoslingSpecUpdate callback function #48

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

sehilyi
Copy link
Member

@sehilyi sehilyi commented Jan 23, 2025

This PR is not ready for review. A large part of code changes for the demo of creating AltGosling specs is not highly relevant to this PR.

This PR tries to introduce a callback function that gives the AltGosling generated descriptions. This will be useful for users to programmatically obtain those descriptions and reuse them for another purposes (e.g., generating descriptions in bulk).

@sehilyi sehilyi marked this pull request as draft January 23, 2025 17:02
@sehilyi sehilyi changed the title WIP: working on onAltGoslingSpecUpdate feat: onAltGoslingSpecUpdate callback function Jan 28, 2025
@sehilyi sehilyi changed the title feat: onAltGoslingSpecUpdate callback function [draft] feat: onAltGoslingSpecUpdate callback function Jan 28, 2025
Comment on lines +16 to +22
try {
// add descriptions
treeText(altSpec);
dataText(altSpec);
} catch {
console.error('Unexpected error occurred when adding descriptions');
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When using Editor examples, I was getting uncaught errors around treeText. As a workaround, I added this error handling part.

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.

1 participant