Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: generify menu #390

Merged
merged 1 commit into from
Mar 12, 2025
Merged

Conversation

geovie
Copy link
Contributor

@geovie geovie commented Mar 8, 2025

Most of the time I found that I would want to use an enum for the MenuItem's, so this PR generifies Menu/MenuItem so that any type which satisfies Clone can be used as value.

Of course with the generics we hit leptos-rs/leptos#3200 (comment) so the type needs to be specified when creating the MenuItem's.

I wonder if value even needs to be a Signal or if it could be a simple value?

@luoxiaozero
Copy link
Collaborator

luoxiaozero commented Mar 11, 2025

Maybe we can remove the Signal type from value in the thaw/v0.5 branch and change it to a simple value.

This PR is also a breaking change, we can also merge it into thaw/v0.5.

@geovie geovie force-pushed the feat/generify-menu branch from dd2e96d to 042e81b Compare March 11, 2025 08:06
@geovie geovie changed the base branch from main to thaw/v0.5 March 11, 2025 08:07
@geovie
Copy link
Contributor Author

geovie commented Mar 11, 2025

Great, I removed the Signal and changed the MR to use v0.5 as base

@luoxiaozero luoxiaozero merged commit 3ec66a5 into thaw-ui:thaw/v0.5 Mar 12, 2025
5 checks passed
@luoxiaozero
Copy link
Collaborator

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants