DioxusLabs / DioxusLabs/dioxus

[Bug] Using Context with Suspense Throws a Warning

Open
#3,209 2 comments 0 reactions 0 assignees View on GitHub
core needs reproduction
Dominant language
Rust
Stars
39.1k
Forks
1.9k
Avg merge
4d 10h
Merged PRs (30d)
4

Description

Hiya 👋,

When using the `use_context` hook in a full-stack setup, I occasionally encounter a warning indicating that the hook is being called twice. It seems this happens because Suspense renders the component twice.

The warning doesn’t appear consistently, but it does pop up often enough to be concerning.

Opening this bug report to track the issue.

Best

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.