Skip to content

Commit

Permalink
docs: add more keywords for reducer/reviver docs
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Mar 15, 2024
1 parent b9168d0 commit 6b1f343
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/3.api/2.composables/use-nuxt-app.md
Expand Up @@ -128,9 +128,9 @@ Nuxt exposes the following properties through `ssrContext`:

It is also possible to use more advanced types, such as `ref`, `reactive`, `shallowRef`, `shallowReactive` and `NuxtError`.

Since [Nuxt v3.4](https://nuxt.com/blog/v3-4#payload-enhancements), it is possible to define your own serializer/deserializer for types that are not supported by Nuxt.
Since [Nuxt v3.4](https://nuxt.com/blog/v3-4#payload-enhancements), it is possible to define your own reducer/reviver for types that are not supported by Nuxt.

In the example below, we define a serializer for the [Luxon](https://moment.github.io/luxon/#/) DateTime class.
In the example below, we define a reducer (or a serializer) and a reviver (or deserializer) for the [Luxon](https://moment.github.io/luxon/#/) DateTime class, using a payload plugin.

```ts [plugins/date-time-payload.ts]
/**
Expand Down

0 comments on commit 6b1f343

Please sign in to comment.