Skip to content

Commit

Permalink
cookie store fix
Browse files Browse the repository at this point in the history
- listeners was not called when setCookie called
  • Loading branch information
krutoo committed Aug 9, 2023
1 parent 594a83f commit 939c5a0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ export function createCookieStore(initialCookies?: string): CookieStore {
}

items.set(cookieName, cookieValue);

listeners.forEach(fn => fn());
};

const getCookies = () => {
Expand Down

0 comments on commit 939c5a0

Please sign in to comment.