Replies: 1 comment
-
There isn’t a great way to do this because it is antithetical to how Leptos works. Rerenders are almost always finely targeted on specific bits of the view through reactive primitives.
My advice would be to put whatever you want to trigger changes in a signal, put that in context, and then make bits of your ui read it. That’d cause those bits to render anytime the value is set.
…On Mon, May 5, 2025, at 7:02 AM, imatheria wrote:
i just want to trigger a rerender in a component after a context was provided after fetching async.
Hence use_context does not trigger a rerender i tried ArcTrigger, but ArcTrigger only triggers Effects, not components.
How do i achieve this?
—
Reply to this email directly, view it on GitHub <#3934>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/ABVBTCN6QDJ6CDZ75G7IECD245VOJAVCNFSM6AAAAAB4OXATCWVHI2DSMVQWIX3LMV43ERDJONRXK43TNFXW4OZYGI4DCNJUGA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
imatheria
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
i just want to trigger a rerender in a component after a context was provided after fetching async.
Hence use_context does not trigger a rerender i tried ArcTrigger, but ArcTrigger only triggers Effects, not components.
How do i achieve this?
Beta Was this translation helpful? Give feedback.
All reactions