The file_explorer example had two issues:
1. Used heuristic (contains '.') to detect files vs directories, which is unreliable
2. Tried to enter files as directories when clicked, causing errors
Changes:
- Use path.is_file() for accurate file detection
- Use path.is_dir() check before entering a directory
- Rename shadowed 'path' variable to 'path_display'
Fixes#5368
Co-authored-by: BillionClaw <267901332+BillionClaw@users.noreply.github.com>
* Enable native for hotdog, file-explorer, and bluetooth-scanner examples
Signed-off-by: Nico Burns <nico@nicoburns.com>
* Fix crash in calculator example
Signed-off-by: Nico Burns <nico@nicoburns.com>
* Add config macro for native
* Add Config struct to dioxus-native
* Re-export dioxus-native as dioxus::native
* Fix calculator example to work with dioxus-native
* Fix calculator_mutable example to work with dioxus-native
---------
Signed-off-by: Nico Burns <nico@nicoburns.com>
overhaul dioxus fullstack using a new implementation of server_fn
This PR is a complete rewrite of dioxus fullstack designed to improve compatibility with axum and to fix a number of compilation errors based on feature flag unification plumbing through macros.