#[bug] @tauri-apps/plugin-store invalid args `rid` for command get: command get missing

11 messages · Page 1 of 1 (latest)

hollow rock
#

This also appears for set and other functions.
This issue mentions a PR that should fix it. Any eta on the fix? Or is there an undocumented API for the store plugin now?
PR #1860

My question is: has the JS API changed or is this truly a bug and will it be fixed soon?

(alias) new Store(rid: number, path: string): Store import Store

Is there some registeredID(?) that should be passed as an argument to the new Store() in addition to the path string?

GitHub

I'm seeing many of these console errors in the webview2 inspector after updating tauri and tauri-plugin-store from 2.0.0-rc to 2.0.0 final. The error points to the plugin-store, or my call poin...

GitHub

Follow up of #1550
Changes:

Disallow calling create_store when there're still active stores with the same path alive
Save and cancel pending auto save on drop
Use absolute path as store&am...

hollow rock
#

Adding a number just results in resource invalid
new Store(42, '/dev-app.db')

hollow rock
#

Seems to be coming from this:

peak sapphire
#

You have to use the createStore(path) method instead of the constructor

hollow rock
broken ermine
#

invalid args ridfor commandload: command load missing required key rid

#

how fix?

hexed hornet
#

same problem

#
async function testStore() {
  try {
    const store = await Store.load('store.json', { autoSave: true })
    await store.set('testKey', { value: 5 })
    const value = await store.get('testKey')
    console.log('Stored value:', value)
  } catch (error) {
    console.error('Error with store operations:', error)
  }
}

testStore()

Error with store operations: invalid args rid for command load: command load missing required key rid