You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Has a solution, but is there an easier way or does this need to be documented?
The question
Hi, I’m trying to send a DELETE request to logout my user. I have phx.gen.auth in my project. It’s pretty straight forward in LiveView with .link, but I’m having a hard time replicating this with using LiveSvelte. I thought about using phx-click event, but the logout code from the session controller doesn’t have what it needs.
Is there a way to do some kind of delete request to the controller within the handle_event?
Or is there some easier way to handle this?
The text was updated successfully, but these errors were encountered:
dev-guy
changed the title
How to access link with method other than get within LiveSvelte
How to access link with method other than get?
Jun 18, 2024
https://elixirforum.com/t/how-to-access-link-with-method-other-than-get-within-livesvelte/64331
Has a solution, but is there an easier way or does this need to be documented?
The question
Hi, I’m trying to send a DELETE request to logout my user. I have phx.gen.auth in my project. It’s pretty straight forward in LiveView with .link, but I’m having a hard time replicating this with using LiveSvelte. I thought about using phx-click event, but the logout code from the session controller doesn’t have what it needs.
Is there a way to do some kind of delete request to the controller within the handle_event?
Or is there some easier way to handle this?
The text was updated successfully, but these errors were encountered: