mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-04-21 11:26:15 +02:00
* Fix with_store become private in #1011 * Add change file
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
---
|
||||
'store': patch
|
||||
---
|
||||
|
||||
Fix `with_store` and `StoreCollection` changed to private in #1011
|
||||
@@ -48,7 +48,7 @@ struct ChangePayload<'a> {
|
||||
value: &'a JsonValue,
|
||||
}
|
||||
|
||||
struct StoreCollection<R: Runtime> {
|
||||
pub struct StoreCollection<R: Runtime> {
|
||||
stores: Mutex<HashMap<PathBuf, Store<R>>>,
|
||||
frozen: bool,
|
||||
|
||||
@@ -56,7 +56,7 @@ struct StoreCollection<R: Runtime> {
|
||||
mobile_plugin_handle: PluginHandle<R>,
|
||||
}
|
||||
|
||||
fn with_store<R: Runtime, T, F: FnOnce(&mut Store<R>) -> Result<T>>(
|
||||
pub fn with_store<R: Runtime, T, F: FnOnce(&mut Store<R>) -> Result<T>>(
|
||||
app: AppHandle<R>,
|
||||
collection: State<'_, StoreCollection<R>>,
|
||||
path: impl AsRef<Path>,
|
||||
|
||||
Reference in New Issue
Block a user