DioxusLabs / dioxus

Fullstack app framework for web, desktop, mobile, and more.
https://dioxuslabs.com
Apache License 2.0
20.23k stars 775 forks source link

Clean up the prelude #2718

Open jkelleyrtp opened 1 month ago

jkelleyrtp commented 1 month ago

Feature Request

We have lots of things exported due to the prelude which is leading to messy autocomplete, fragile interfaces, and just a generally gross API.

We should cut this down.

A few places:

Ideally you pull in a prelude specific to the stuff you're working on, if you need it (desktop/mobile/hooks, etc).

This should also help with discovery since it's common for people to use autocomplete to navigate the module graph looking for what they need. Right now our stuff isn't very navigable.

matthunz commented 1 month ago

Ideally you pull in a prelude specific to the stuff you're working on, if you need it (desktop/mobile/hooks, etc).

Would this mean removing dioxus_html from the dioxus crate's prelude? I'd be in favor of this for Freya/alternative Dioxus backends