Commit ab34f97
authored
fix: Prevent race condition in preinstalled example Snap (#3725)
Prevent a race condition in the preinstalled example Snap by using
`snap_setState`.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Use snap_setState for settings updates in the preinstalled example
snap and update the manifest shasum.
>
> - **Preinstalled example snap**:
> - Replace settings input change flow to use `snap_setState` with
`key`/`value`, removing prior `snap_manageState` get+update sequence.
> - **Manifest**:
> - Update `source.shasum` in
`packages/examples/packages/preinstalled/snap.manifest.json`.
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
807ef4c. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->1 parent e5f394c commit ab34f97
File tree
2 files changed
+4
-15
lines changed- packages/examples/packages/preinstalled
- src
2 files changed
+4
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | | - | |
199 | | - | |
200 | | - | |
201 | 193 | | |
202 | | - | |
| 194 | + | |
203 | 195 | | |
204 | | - | |
205 | 196 | | |
206 | | - | |
207 | | - | |
208 | | - | |
209 | | - | |
| 197 | + | |
| 198 | + | |
210 | 199 | | |
211 | 200 | | |
212 | 201 | | |
| |||
0 commit comments