Skip to content

Commit

Permalink
docs(api/remix): fix typo (#4268)
Browse files Browse the repository at this point in the history
* Update remix.md

Fix reference in note about the expires argument to the CRUD methods of createSessionStorage

* Update contributors.yml
  • Loading branch information
runofthemill authored and kentcdodds committed Dec 15, 2022
1 parent 5cee23b commit ce3271f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions contributors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@
- ruisaraiva19
- runmoore
- Runner-dev
- runofthemill
- rvlewerissa
- ryanflorence
- ryanjames1729
Expand Down
2 changes: 1 addition & 1 deletion docs/api/remix.md
Original file line number Diff line number Diff line change
Expand Up @@ -2256,7 +2256,7 @@ const { getSession, commitSession, destroySession } =
});
```

The `expires` argument to `readData` and `updateData` is the same `Date` at which the cookie itself expires and is no longer valid. You can use this information to automatically purge the session record from your database to save on space, or to ensure that you do not otherwise return any data for old, expired cookies.
The `expires` argument to `createData` and `updateData` is the same `Date` at which the cookie itself expires and is no longer valid. You can use this information to automatically purge the session record from your database to save on space, or to ensure that you do not otherwise return any data for old, expired cookies.

### `createCookieSessionStorage`

Expand Down

0 comments on commit ce3271f

Please sign in to comment.