DioxusLabs / DioxusLabs/dioxus

(bug:mobile) use_loader doesn't work properly for some APIs.

Open
#5,547 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

**Problem**
- In https://github.com/hackartists/ratel/blob/feature/android-mobile/app/ratel/src/views/index/component.rs#L93-L99 , it causes stopping applications hanging in calling APIs.
- Specifically, it seems not to reach the request to the server.
- Before the hook, use_user_context works properly making a API call to /api/auth/me

**Steps To Reproduce**

Steps to reproduce the behavior:

- `git clone git@github.com:hackartists/ratel.git`
- `git checkout feature/android-mobile`
- `cd app/ratel && make android`

**Expected behavior**

- It should show main screen properly.

**Screenshots**

Image

```
05-11 10:01:07.979 10045 10070 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:04:00.224 10213 10242 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:16:35.827 10412 10437 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:17:01.198 10589 10611 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:17:08.008 10708 10732 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:18:51.853 10837 10864 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:23:10.227 11016 11043 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:24:30.816 11191 11216 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:35:15.955 11884 11911 D RatelRust: app_shell::views::index::component: before hot space
05-11 10:44:01.114 12244 12302 D RatelRust: app_shell::views::index::component: before hot space
05-11 11:00:01.181 12479 12504 D RatelRust: app_shell::views::index::component: before hot space
```

**Environment:**

- Dioxus version: dioxus 0.7.9 (3e43ffa)
- Rust version: rustc 1.95.0 (59807616e 2026-04-14)
- OS info: MacOS( Darwin hackartists-Mac-Studio.local 25.4.0 Darwin Kernel Version 25.4.0: Thu Mar 19 19:26:07 PDT 2026; root:xnu-12377.101.15~1/RELEASE_ARM64_T6031 arm64)
- App platform: Mobile (Android)

**Questionnaire**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.