Skip to content

Commit

Permalink
Fix links to phx-hook docs (phoenixframework#3113)
Browse files Browse the repository at this point in the history
Some links were correctly pointing to `#client-hooks-via-phx-hook`, some
not.
  • Loading branch information
rhcarvalho authored Feb 12, 2024
1 parent 77307dd commit a55fefb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion guides/client/bindings.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ callback, for example:
| [Key Events](#key-events) | `phx-keydown`, `phx-keyup`, `phx-window-keydown`, `phx-window-keyup`, `phx-key` |
| [Scroll Events](#scroll-events-and-infinite-stream-pagination) | `phx-viewport-top`, `phx-viewport-bottom` |
| [DOM Patching](dom-patching.md) | `phx-mounted`, `phx-update`, `phx-remove` |
| [JS Interop](js-interop.md#client-hooks) | `phx-hook` |
| [JS Interop](js-interop.md#client-hooks-via-phx-hook) | `phx-hook` |
| [Lifecycle Events](#lifecycle-events) | `phx-mounted`, `phx-disconnected`, `phx-connected` |
| [Rate Limiting](#rate-limiting-events-with-debounce-and-throttle) | `phx-debounce`, `phx-throttle` |
| [Static tracking](`Phoenix.LiveView.static_changed?/1`) | `phx-track-static` |
Expand Down
4 changes: 2 additions & 2 deletions lib/phoenix_live_view.ex
Original file line number Diff line number Diff line change
Expand Up @@ -1398,7 +1398,7 @@ defmodule Phoenix.LiveView do
> Note: This function is for server-side lifecycle callbacks.
> For client-side hooks, see the
> [JS Interop guide](js-interop.html#client-hooks).
> [JS Interop guide](js-interop.html#client-hooks-via-phx-hook).
Hooks provide a mechanism to tap into key stages of the LiveView
lifecycle in order to bind/update assigns, intercept events,
Expand Down Expand Up @@ -1504,7 +1504,7 @@ defmodule Phoenix.LiveView do
> Note: This function is for server-side lifecycle callbacks.
> For client-side hooks, see the
> [JS Interop guide](js-interop.html#client-hooks).
> [JS Interop guide](js-interop.html#client-hooks-via-phx-hook).
If no hook is found, this function is a no-op.
Expand Down

0 comments on commit a55fefb

Please sign in to comment.