-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Examples for LaunchBuilder methods #3530
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
good first issue
Good for newcomers
Comments
I would like to work on this. |
Great! Feel free to ask any questions here or on the discord if you run into any issues |
vishwamartur
added a commit
to vishwamartur/dioxus
that referenced
this issue
Jan 22, 2025
Related to DioxusLabs#3530 Add examples for `with_cfg`, `with_context`, and `with_context_provider` methods in the `LaunchBuilder` documentation. * **with_context_provider**: Add an example demonstrating how to inject state into the root component's context created on the thread that the app is launched on. * **with_context**: Add an example demonstrating how to inject state into the root component's context. * **with_cfg**: Add an example demonstrating how to provide a platform-specific config to the builder.
jkelleyrtp
pushed a commit
that referenced
this issue
Jan 31, 2025
Related to #3530 Add examples for `with_cfg`, `with_context`, and `with_context_provider` methods in the `LaunchBuilder` documentation. * **with_context_provider**: Add an example demonstrating how to inject state into the root component's context created on the thread that the app is launched on. * **with_context**: Add an example demonstrating how to inject state into the root component's context. * **with_cfg**: Add an example demonstrating how to provide a platform-specific config to the builder.
Closed by #3629 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
documentation
Improvements or additions to documentation
enhancement
New feature or request
good first issue
Good for newcomers
Feature Request
The LaunchBuilder method is a very common API in dioxus. We should include some examples of how to use the API with a custom platform config and context
Implement Suggestion
Include examples of launching apps with the
with_cfg
,with_context
, andwith_context_provider
methods in theLaunchBuilder
documentationThe text was updated successfully, but these errors were encountered: