The problem of using use_url in island #4370
-
<li>
<a
class=("menu-active", move || use_url()().path() == "/")
href="/"
>
<span class="w-6 h-6 icon-[line-md--home]"></span>
Home
<span class="badge badge-xs">99+</span>
</a>
</li>
<li>
<a
class=("menu-active", move || use_url()().path() == "/cut-image")
href="/cut-image"
>
<span class="w-6 h-6 icon-[ph--image-broken-duotone]"></span>
CutImage
</a>
</li>I have enabled the islands features in my code. In the following code, I want to set the class content using dynamic attributes. However, when using use_url function, when I click the |
Beta Was this translation helpful? Give feedback.
Answered by
tqq1994516
Oct 11, 2025
Replies: 1 comment 8 replies
-
|
Is there an error message in the browser console? I would've assumed this would panic in an island -- there is no access to the router, or router APIs, on the client in islands mode. |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Follow the progress of #4378