Skip to content

Commit

Permalink
Merge pull request Shopify#125 from Shopify/@juanpprieto/support-sess…
Browse files Browse the repository at this point in the history
…ion-flash

Add flash support to the session
  • Loading branch information
juanpprieto authored Oct 24, 2022
2 parents 4d43278 + 3a3bf47 commit 00ca078
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/lib/session.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ export async function getSession(request: Request, context: AppLoadContext) {
session.set(key, value);
},

flash(key: string, value: any): void {
session.flash(key, value);
},

unset(key: string): void {
session.unset(key);
},
Expand Down

0 comments on commit 00ca078

Please sign in to comment.