Skip to content
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

[bug] cannot find function with_store in crate tauri_plugin_store #1908

Open
nooblyf opened this issue Oct 9, 2024 · 2 comments
Open

[bug] cannot find function with_store in crate tauri_plugin_store #1908

nooblyf opened this issue Oct 9, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation plugin: store

Comments

@nooblyf
Copy link

nooblyf commented Oct 9, 2024

After updating tauri-plugin-store from release candidate to v2.0.1 i'm getting this error on rust side

tauri_plugin_store::with_store(app_handle, stores, app_data_dir, |store| {
    return Ok(store
            .get("my_key")
            .and_then(|value| {
                ...
            }
        );
}
tauri_plugin_store::with_store(app_handle, stores, app_data_dir, |store| {
   |                ^^^^^^^^^^ not found in `tauri_plugin_store`
@Legend-Master Legend-Master added documentation Improvements or additions to documentation plugin: store labels Oct 9, 2024
@JakenHerman
Copy link
Contributor

I think with_store was removed in #1550, right @Legend-Master?

@Legend-Master
Copy link
Contributor

Legend-Master commented Oct 11, 2024

Yes and no, it's now moved to store that you can get from app_handle.store("abc.json")

But there's another rework #1860 going on so this might change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation plugin: store
Projects
None yet
Development

No branches or pull requests

3 participants