Skip to content

feat: generify menu - #390

Merged
lizidev merged 1 commit into
thaw-ui:thaw/v0.5from
geovie:feat/generify-menu
Mar 12, 2025
Merged

feat: generify menu#390
lizidev merged 1 commit into
thaw-ui:thaw/v0.5from
geovie:feat/generify-menu

Conversation

@geovie

@geovie geovie commented Mar 8, 2025

Copy link
Copy Markdown
Contributor

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?

@lizidev

lizidev commented Mar 11, 2025

Copy link
Copy Markdown
Collaborator

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

geovie commented Mar 11, 2025

Copy link
Copy Markdown
Contributor Author

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

@lizidev
lizidev merged commit 3ec66a5 into thaw-ui:thaw/v0.5 Mar 12, 2025
@lizidev

lizidev commented Mar 12, 2025

Copy link
Copy Markdown
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