Replies: 1 comment
-
Published some code for reference: Some helper macros Example usage without the macros |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm currently using a custom
SignalResult
enum to handle multiple signals in my Leptos application. While it works, I'm wondering if there's a more idiomatic or efficient way to achieve this. Here's a simplified version of my current approach:This approach allows me to handle loading states, errors, and successful data fetching for multiple signals. However, I'm concerned about:
From<Option<Result<T, E>>>
as it was conflicting withFrom<Option<T>>
Are there any built-in Leptos features or community patterns that could simplify this error handling while maintaining the ability to show loading states and aggregate errors from multiple signals?
Any insights or alternative approaches would be greatly appreciated!
Beta Was this translation helpful? Give feedback.
All reactions