@@ -182,33 +182,33 @@ let's keep going because… things get cooler.
182182 a ``mount() `` method or use the ``PostMount `` hook: `Twig Component mount documentation `_.
183183
184184Hooks: Handle Component Behavior
185- ----------------------------------------
185+ --------------------------------
186186Most of the time, you'll just pass data to your components and
187187let it handle the rest. However, if you need to do something
188188more complex during certain stages of a component's lifecycle, you
189189can take advantage of lifecycle hooks.
190190
191191``PostHydrate `` Hook
192- ~~~~~~~~~~~~~~~~~~~
192+ ~~~~~~~~~~~~~~~~~~~~
193193The ``#[PostHydrate] `` hook is called immediately after the component's state
194194is loaded from the client. This is useful if you need to process or adjust
195195the data once it’s been hydrated.
196196
197197``PreDehydrate `` Hook
198- ~~~~~~~~~~~~~~~~~~~
198+ ~~~~~~~~~~~~~~~~~~~~~
199199The ``#[PreDehydrate] `` hook is triggered just before your component’s state
200200is sent back to the client. You can use this to modify or clean up the data
201201before it’s serialized and returned to the client.
202202
203203``PreReRender `` Hook
204- ~~~~~~~~~~~~~~~~~~~
204+ ~~~~~~~~~~~~~~~~~~~~
205205The ``#[PreReRender] `` hook is called before your component is re-rendered
206206during an HTTP request. It does not run during the initial render but is
207207helpful when you need to adjust the state before sending it back to
208208the client for re-rendering.
209209
210210Hook Priority
211- ~~~~~~~~~~~~~~~~~~~
211+ ~~~~~~~~~~~~~
212212You can control the order in which hooks are executed by using the ``priority ``
213213argument. If multiple hooks of the same type are registered in a component, those
214214with a higher priority value will run first. This allows you to manage the order
0 commit comments