Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/essential/best-practice.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ Each file has its own responsibility:

Feel free to adapt this structure to your needs and use any coding pattern you prefer.

::: note
::: tip
You may get a warning when using `cookie.name` as it might be `undefined` depending on your TypeScript configuration.

Elysia cookie can never be `undefined` because it's a Proxy object. `cookie` is always defined, only its value (via cookie.value) can be undefined.
Expand Down
2 changes: 1 addition & 1 deletion docs/patterns/macro.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ Macro can also register a new property to the context, allowing us to access the

The field can accept anything ranging from string to function, allowing us to create a custom life cycle event.

::: note
::: tip
**macro** will be executed in order from top-to-bottom according to the definition in the hook, ensuring that the stack is handled in the correct order.
:::-->
Comment thread
vrajpal-jhala marked this conversation as resolved.

Expand Down