From 2fb0bc722a21d05d470bb5e5b01313e9508383eb Mon Sep 17 00:00:00 2001 From: Talos0248 Date: Sat, 6 Dec 2025 12:31:38 +0800 Subject: [PATCH] docs: add missing title "features/posts/postsSlice.ts" to code block in "Post Reaction Buttons" section --- docs/tutorials/essentials/part-4-using-data.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/tutorials/essentials/part-4-using-data.md b/docs/tutorials/essentials/part-4-using-data.md index 574d565f23..4cc9d98ef2 100644 --- a/docs/tutorials/essentials/part-4-using-data.md +++ b/docs/tutorials/essentials/part-4-using-data.md @@ -919,7 +919,7 @@ Then, we can define a new reducer that will handle updating the reaction count f Like with editing posts, we need to know the ID of the post, and which reaction button the user clicked on. We'll have our `action.payload` be an object that looks like `{id, reaction}`. The reducer can then find the right post object, and update the correct reactions field. -```ts +```ts title="features/posts/postsSlice.ts" import { createSlice, nanoid, PayloadAction } from '@reduxjs/toolkit' import { sub } from 'date-fns'