Skip to content

Commit

Permalink
chore(docs): typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
cofin committed Dec 30, 2024
1 parent d93d1fb commit cc07b98
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/usage/inertia.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,9 @@ This data will automatically serialized to JSON and passed to the client side co
Lazy Loading
~~~~~~~~~~~~

If you would like to conditionally return data to the client based on the reuqest using Inertia deferred data, you can use the `lazy` function.
If you would like to conditionally return data to the client based on the request using Inertia deferred data, you can use the `lazy` function.

This mehtod allows for deferred execution of methods. Under normal cases, the data or callable referened in the lazy function will not be executed. However, if the client requests the partial data or component, the element will be executed and rendered in the response.
This method allows for deferred execution of methods. Under normal cases, the data or callable referenced in the lazy function will not be executed. However, if the client requests the partial data or component, the element will be executed and rendered in the response.

It works with sync and async callables as well as static values.

Expand Down Expand Up @@ -243,7 +243,7 @@ CSRF Protection

If you would like to use drop-in CSRF protection with the Inertia plugin, you can use the built in Litestar CSRF protection with the cookie_name set to ``csrftoken`` or with a header name set to ``x-csrftoken``.

If you use any other value, be sure to refernce the configuration details in the `Inertia documentation <https://inertiajs.com/csrf-protection>`_.
If you use any other value, be sure to refer to the configuration details in the `Inertia documentation <https://inertiajs.com/csrf-protection>`_.


For more examples and best practices, refer to the
Expand Down
1 change: 0 additions & 1 deletion docs/usage/vite.rst
Original file line number Diff line number Diff line change
Expand Up @@ -184,4 +184,3 @@ The build process will:


For more information about Inertia integration, refer to the :doc:`Inertia </usage/inertia>` documentation.

0 comments on commit cc07b98

Please sign in to comment.