-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
14 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81af3a7
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.
Thanks @jamesnvc, this shreds some light into issue #1
Now that I know how can it be done I'll try to work in the docs for it.
Question, what would be the way to call the server to persist the change on each toggle?
81af3a7
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.
This works for now, but I think a better solution will be to add something to the vuelog library part to wrap the
v-bind
stuff.Also something that will need improvement is that this actually already persists the change: The
handle_event(S, update, S)
event is triggered whenever properties of the state change -- unfortunately, with this set up, the server doesn't actually get to see what the previous state was. It does work for this sort of simple setup though.81af3a7
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.
Oh ok, will you mind adding those as issues so we can have better tracking of them. Maybe the first one belongs to the vuelog repository, but the second one we could add it here to test it out and when we have something that meets the expectations we just port it.
81af3a7
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.
Annoyingly, the update thing is something that's hard-coded in Vuelog itself right now, so it might make more sense to have the issue there; this line makes it so whenever the Vue-side model changes, it sends the new state to the pengine with the parameter just being
update
.81af3a7
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.
Opened swi-prologhackday/vuelog#1 and swi-prologhackday/vuelog#2
81af3a7
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.
Yeah that completely makes sense, great! Thanks James we will hopefully tackle them soon!