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
Basically, I'm not quite sure I understand what the canonical usage is supposed to look like anymore. My currently working instantiation code looks like this:
It seems that this is supposed to represent the autosave debounce? But it's not represented in the JS types.
Also, the docs now don't use createStore? But then this following store doesn't assigned a rid, right? The following code from the readme throws an error for me (using npm:@tauri-apps/plugin-store@^2.0.0, rust:tauri-plugin-store = "2.0.1").
conststore=newStore('.settings.dat')
I wouldn't mind cleaning up the docs and types a bit if my original usage is intended. But I just don't know how I'm "supposed" to be using this plugin.
The text was updated successfully, but these errors were encountered:
bpevs
changed the title
plugin-store "autosave" expects u64 in rust, but boolean in js
[store][v2] "autosave" expects u64 in rust, but boolean in js
Oct 14, 2024
Basically, I'm not quite sure I understand what the canonical usage is supposed to look like anymore. My currently working instantiation code looks like this:
In the guest-js, the store expects a
boolean
for autoSave, but the bridge will throw an error for this, because on the rust-side, we actually expect anOptional u64
It seems that this is supposed to represent the autosave debounce? But it's not represented in the JS types.
Also, the docs now don't use
createStore
? But then this following store doesn't assigned a rid, right? The following code from the readme throws an error for me (usingnpm:@tauri-apps/plugin-store@^2.0.0
,rust:tauri-plugin-store = "2.0.1"
).I wouldn't mind cleaning up the docs and types a bit if my original usage is intended. But I just don't know how I'm "supposed" to be using this plugin.
The text was updated successfully, but these errors were encountered: