Introduce data field as the main property on which to get/set other properties #4
No reviewers
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
orinoco/shacl-tulip!4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "events"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is in response to the process of trying to turn class instances into reactive objects. Since this library is a core dependency of
shacl-vuewhich uses Vuejs, and since this library is independent of Vuejs, an external package should be able to takeshacl-tulip's exports and make them reactive. It has been a challenging process to figure out how to do this generally. Refer to https://github.com/psychoinformatics-de/shacl-vue/issues/84.So the current best solution that I could find is to introduce a
dataargument, which defaults to an empty object, to theRdfDatasetclass and to set this as the value ofthis.datain the class constructor. This allows external libraries to pass areactiveobject (e.g.reactive({}); importantly NOT aref()) to the constructor, and afterward the reactive object will be accessible on thedataproperty of the class instance. All data-related properties get moved to be properties of thedataproperty and methods remain where they are. Additionally, tests were updated to reflect this change.