You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi.
Using the keyPath plugin, and a UUID as key, with the webkit-sqlite adapter breaks in various interesting ways.
First, the key in object syntax breaks (for example, keyPath.js keyEmbellish function).
After that, it seems that when saving, the keyExtraction function returns the id (key) as '"56f6b98d-d82f-4f4e-8a77-b42208dd4432"' - note the " characters. This is a consequence of the use of JSON.stringify at one point. This does not break saving, but it DOES break for remove, where essentially the ID values then do not match. Not sure about other functions at this point.
I have managed to hack and slash things into a working condition for the project I need it, but the code is not at a point I'm willing to submit a PR. I will do so IFF I get the time to polish a bit.
The text was updated successfully, but these errors were encountered:
Hi.
Using the keyPath plugin, and a UUID as key, with the webkit-sqlite adapter breaks in various interesting ways.
First, the
key in object
syntax breaks (for example, keyPath.jskeyEmbellish
function).After that, it seems that when saving, the
keyExtraction
function returns the id (key) as'"56f6b98d-d82f-4f4e-8a77-b42208dd4432"'
- note the " characters. This is a consequence of the use ofJSON.stringify
at one point. This does not break saving, but it DOES break forremove
, where essentially the ID values then do not match. Not sure about other functions at this point.I have managed to hack and slash things into a working condition for the project I need it, but the code is not at a point I'm willing to submit a PR. I will do so IFF I get the time to polish a bit.
The text was updated successfully, but these errors were encountered: