Skip to content

Commit ffbda02

Browse files
committed
Fix [Live][Docs] "Hooks: Handle Component Behavior" line break / spacing issue
1 parent 49ec396 commit ffbda02

File tree

1 file changed

+5
-18
lines changed

1 file changed

+5
-18
lines changed

src/LiveComponent/doc/index.rst

Lines changed: 5 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -183,36 +183,23 @@ let's keep going because… things get cooler.
183183

184184
Hooks: Handle Component Behavior
185185
--------------------------------
186-
Most of the time, you'll just pass data to your components and
187-
let it handle the rest. However, if you need to do something
188-
more complex during certain stages of a component's lifecycle, you
189-
can take advantage of lifecycle hooks.
186+
Most of the time, you'll just pass data to your components and let it handle the rest. However, if you need to do something more complex during certain stages of a component's lifecycle, you can take advantage of lifecycle hooks.
190187

191188
``PostHydrate`` Hook
192189
~~~~~~~~~~~~~~~~~~~~
193-
The ``#[PostHydrate]`` hook is called immediately after the component's state
194-
is loaded from the client. This is useful if you need to process or adjust
195-
the data once it’s been hydrated.
190+
The ``#[PostHydrate]`` hook is called immediately after the component's state is loaded from the client. This is useful if you need to process or adjust the data once it’s been hydrated.
196191

197192
``PreDehydrate`` Hook
198193
~~~~~~~~~~~~~~~~~~~~~
199-
The ``#[PreDehydrate]`` hook is triggered just before your component’s state
200-
is sent back to the client. You can use this to modify or clean up the data
201-
before it’s serialized and returned to the client.
194+
The ``#[PreDehydrate]`` hook is triggered just before your component’s state is sent back to the client. You can use this to modify or clean up the data before it’s serialized and returned to the client.
202195

203196
``PreReRender`` Hook
204197
~~~~~~~~~~~~~~~~~~~~
205-
The ``#[PreReRender]`` hook is called before your component is re-rendered
206-
during an HTTP request. It does not run during the initial render but is
207-
helpful when you need to adjust the state before sending it back to
208-
the client for re-rendering.
198+
The ``#[PreReRender]`` hook is called before your component is re-rendered during an HTTP request. It does not run during the initial render but is helpful when you need to adjust the state before sending it back to the client for re-rendering.
209199

210200
Hook Priority
211201
~~~~~~~~~~~~~
212-
You can control the order in which hooks are executed by using the ``priority``
213-
argument. If multiple hooks of the same type are registered in a component, those
214-
with a higher priority value will run first. This allows you to manage the order
215-
in which your actions are performed within the same lifecycle stage::
202+
You can control the order in which hooks are executed by using the ``priority`` argument. If multiple hooks of the same type are registered in a component, those with a higher priority value will run first. This allows you to manage the order in which your actions are performed within the same lifecycle stage::
216203
217204
#[PostHydrate(priority: 10)]
218205
public function highPriorityHook(): void

0 commit comments

Comments
 (0)