File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
packages/snaps-controllers/src/snaps Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1966,8 +1966,10 @@ export class SnapController extends BaseController<
19661966 /**
19671967 * Persist the state of a Snap.
19681968 *
1969- * This is run with a mutex to ensure that only one state update per Snap is
1970- * processed at a time, avoiding possible race conditions.
1969+ * This function is debounced per Snap, meaning that multiple calls to this
1970+ * function for the same Snap will only result in one state update. It also
1971+ * uses a mutex to ensure that only one state update per Snap is processed at
1972+ * a time, avoiding possible race conditions.
19711973 *
19721974 * @param snapId - The Snap ID.
19731975 * @param newSnapState - The new state of the Snap.
You can’t perform that action at this time.
0 commit comments