Upgrade to leptos 0.7 #14

Open
opened 2024-12-11 18:20:18 +00:00 by glademiller · 2 comments
glademiller commented 2024-12-11 18:20:18 +00:00 (Migrated from gitlab.com)
No description provided.
michael.catanzariti commented 2025-02-06 15:17:32 +00:00 (Migrated from gitlab.com)

any news on this one?

any news on this one?
erefes commented 2025-02-11 11:37:45 +00:00 (Migrated from gitlab.com)

Well, I gave it a shot and was quite surprised at what was necessary to get it done. Apparently the logic on loading a local resource changed a lot. While it is still possible to do it similarly as it was before I ended up restructuring it quite a bit more than I thought was necessary. Now it no longer uses the resource to communicate the entire state but a signal that contains exactly the relevant information. This avoids unpacking of option values. Also, I added a loading state and an error state which helps to differentiate in which state the authentication process is. There are also two new examples added and a minimal setup for testing with keycloak locally. I've updated some of the documentation but I'm not sure if I catched everything. But go ahead and try it out, it's available here and also checkout the changelog. I intend to create a pull request for this.

Let me know if there is something to improve.

Well, I gave it a shot and was quite surprised at what was necessary to get it done. Apparently the logic on loading a local resource changed a lot. While it is still possible to do it similarly as it was before I ended up restructuring it quite a bit more than I thought was necessary. Now it no longer uses the resource to communicate the entire state but a signal that contains exactly the relevant information. This avoids unpacking of option values. Also, I added a loading state and an error state which helps to differentiate in which state the authentication process is. There are also two new examples added and a minimal setup for testing with keycloak locally. I've updated some of the documentation but I'm not sure if I catched everything. But go ahead and try it out, it's available [here](https://gitlab.com/opendut/leptos_oidc/-/tree/upgrade-leptos-0.7?ref_type=heads) and also checkout the [changelog](https://gitlab.com/opendut/leptos_oidc/-/blob/upgrade-leptos-0.7/CHANGELOG.md?ref_type=heads). I intend to create a pull request for this. Let me know if there is something to improve.
Sign in to join this conversation.
No labels
WIP
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
kerkmann/leptos_oidc#14
No description provided.