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

Detach Icondata, making the library more stable; #37

Merged
merged 5 commits into from
Jan 9, 2024
Merged

Conversation

carloskiki
Copy link
Owner

This solves the issue of making leptos_icons follow icondata upgrade. Icon sources can introduce breaking changes very frequently, which makes leptos_icons perpetually unstable.

This PR resolves this issue by making users (instead of leptos_icons) depend on an icon source.

Notes about experience:
- Generics are somewhat janky with the view! macro
- Could not have a signal that can return icons from different libraries directly
    (e.g., one SiIcon, one BsIcon). They would have to be wrapped in Icon(..)
- Have to test for binary size
cleanup
add icondata as dev-dependency

doc-test target wasm;
@carloskiki carloskiki merged commit 1381a10 into main Jan 9, 2024
14 checks passed
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.

1 participant