-
Notifications
You must be signed in to change notification settings - Fork 70
Added comlink and a sqlite client that encapsulates the communication… #15
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
Added comlink and a sqlite client that encapsulates the communication… #15
Conversation
… with the worker.
|
@tomayac if you can review the code and let me know what you think. I've updated the demo. I'm not sure about hardcoding the link to the comlink cdn but the alternative is to package it somehow and I don't think that's better either. Also, I will update the readme.md once (and if) we are satistified with the code. |
|
Thanks, this is great, and allows people to either use this convenience layer, or ignore it and use the traditional approach. Regarding the Comlink dependency, just |
tomayac
left a comment
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.
Getting there. I like where this is headed. Thanks for working on this!
|
|
||
| console.log(rows); | ||
|
|
||
| document.getElementById('sqlite-client').innerHTML = |
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.
Can you use a template string here and nest it properly?
|
@tomayac I understand not including dependencies in the What's the easiest way I should do this you think? (trying to avoid including too many dependencies in here). |
|
New and updated dependency changes detected. Learn more about Socket for GitHub ↗︎
Footnotes |
|
Sorry for the late response and thanks for this PR. As a early user of this library (and given I've built a predecessor of this project), I'd like to voice a concern in regards to adding I've used Given Happy to chat more about this. Side comment: the merged source file is currently importing from |
|
Thanks for chiming in. I’ve made changes to the finally released version that imports locally, and not from the CDN. Comlink is used as a convenience layer for those who like it, the original way of using the library is still available unchanged. |
That's good to know. Would you be open to making |
|
We can make Comlink an optional dependency, sure. Can you please open a quick PR? I’m OoO until the 17th, but happy to merge it as soon as I return. |
|
I've created one here: #20 |

… with the worker.