We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 133c2de commit 994e316Copy full SHA for 994e316
1 file changed
lib/cookie-state-client.ts
@@ -45,3 +45,8 @@ export function removeCookieState(name: string) {
45
deleteCookie(name);
46
notify();
47
}
48
+
49
+export function resetCookieState<T extends string | object>(name: string, value: T, options?: { path?: string }) {
50
+ writeCookie(name, value, { path: options?.path });
51
+ notify();
52
+}
0 commit comments