Merge pull request #476 from rMazeiks/delete-blank-docs
Delete blank docs
This commit is contained in:
28 files changed
+9
-104
No files matched your search
@@ -32,18 +32,12 @@
|
||||
- [Working with Async](async/index.md)
|
||||
- [UseFuture](async/use_future.md)
|
||||
- [UseCoroutine](async/coroutines.md)
|
||||
<!-- - [Fetching](async/fetching.md) -->
|
||||
<!-- - [Updating State](async/loading_state.md)
|
||||
- [WebSockets](async/sockets.md) -->
|
||||
<!-- - [Tasks](async/asynctasks.md) -->
|
||||
- [Updating State](async/loading_state.md)
|
||||
- [Tasks](async/asynctasks.md)
|
||||
|
||||
<!--
|
||||
- [Putting it all together: Dog Search Engine](tutorial/index.md)
|
||||
- [New app](tutorial/new_app.md)
|
||||
- [Structuring our app](tutorial/structure.md)
|
||||
- [Defining State](tutorial/state.md)
|
||||
- [Defining Components](tutorial/components.md)
|
||||
- [Styling](tutorial/styling.md)
|
||||
- [Bundling](tutorial/publishing.md) -->
|
||||
|
||||
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
# Fetching
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
# WebSockets
|
||||
@@ -1 +0,0 @@
|
||||
# Channels
|
||||
@@ -1 +0,0 @@
|
||||
# Advanced Guides
|
||||
@@ -1,3 +0,0 @@
|
||||
# Defining Components
|
||||
|
||||
This section is currently under construction! 🏗
|
||||
@@ -1,3 +0,0 @@
|
||||
# Defining State
|
||||
|
||||
This section is currently under construction! 🏗
|
||||
@@ -1,4 +0,0 @@
|
||||
# Structuring our app
|
||||
|
||||
|
||||
This section is currently under construction! 🏗
|
||||
@@ -1,4 +0,0 @@
|
||||
# Styling
|
||||
|
||||
|
||||
This section is currently under construction! 🏗
|
||||
@@ -11,35 +11,5 @@
|
||||
|
||||
- [Advanced Guides](guide/index.md)
|
||||
- [RSX in Depth](guide/rsx_in_depth.md)
|
||||
- [Components](guide/components.md)
|
||||
- [Props](guide/props.md)
|
||||
- [Memoization](guide/memoization.md)
|
||||
- [Performance](guide/performance.md)
|
||||
- [Testing](guide/testing.md)
|
||||
- [Building Elements with NodeFactory](guide/rsx.md)
|
||||
- [Custom Elements](guide/custom_elements.md)
|
||||
- [Custom Renderer](guide/custom_renderer.md)
|
||||
- [Server-side components](guide/server_side_components.md)
|
||||
- [Bundling and Distributing](guide/bundline.md)
|
||||
- [Hot Reloading Rsx](guide/hot_reloading.md)
|
||||
|
||||
- [Reference Guide](reference/reference.md)
|
||||
- [Anti-patterns](reference/anti.md)
|
||||
- [Children](reference/children.md)
|
||||
- [Conditional Rendering](reference/conditional.md)
|
||||
- [Controlled Inputs](reference/controlled.md)
|
||||
- [Custom Elements](reference/custom.md)
|
||||
- [Empty Components](reference/empty.md)
|
||||
- [Error Handling](reference/error.md)
|
||||
- [Fragments](reference/fragments.md)
|
||||
- [Global CSS](reference/global.md)
|
||||
- [Inline Styles](reference/inline.md)
|
||||
- [Iterators](reference/iterators.md)
|
||||
- [Listeners](reference/listeners.md)
|
||||
- [Memoization](reference/memoization.md)
|
||||
- [Node Refs](reference/node.md)
|
||||
- [Spread Pattern](reference/spread.md)
|
||||
- [State Management](reference/state.md)
|
||||
- [Suspense](reference/suspense.md)
|
||||
- [task](reference/task.md)
|
||||
- [Testing](reference/testing.md)
|
||||
- [Hot Reloading Rsx](guide/hot_reloading.md)
|
||||
@@ -1 +0,0 @@
|
||||
# Components
|
||||
@@ -1 +0,0 @@
|
||||
# Memoization
|
||||
@@ -1 +0,0 @@
|
||||
# Performance
|
||||
@@ -1 +0,0 @@
|
||||
# Props
|
||||
@@ -1 +0,0 @@
|
||||
# RSX
|
||||
@@ -1 +0,0 @@
|
||||
# Testing
|
||||
@@ -1 +0,0 @@
|
||||
# Topics in Depth
|
||||
@@ -1 +0,0 @@
|
||||
# Bundling and Distributing
|
||||
@@ -1 +0,0 @@
|
||||
# Components
|
||||
@@ -1 +0,0 @@
|
||||
# Custom Elements
|
||||
@@ -1 +0,0 @@
|
||||
# Memoization
|
||||
@@ -1 +0,0 @@
|
||||
# Performance
|
||||
@@ -1 +0,0 @@
|
||||
# Props
|
||||
@@ -1 +0,0 @@
|
||||
# Building Elements with NodeFactory
|
||||
@@ -1 +0,0 @@
|
||||
# Server-side components
|
||||
@@ -1 +0,0 @@
|
||||
# Testing
|
||||
+6
-2
@@ -74,8 +74,6 @@ cargo run --example hello_world
|
||||
|
||||
[tasks](./tasks.rs) - Continuously run future
|
||||
|
||||
[order](./order.rs)
|
||||
|
||||
### SVG
|
||||
|
||||
[svg_basic](./svg_basic.rs)
|
||||
@@ -86,6 +84,12 @@ cargo run --example hello_world
|
||||
|
||||
[framework_benchmark](./framework_benchmark.rs) - Renders a huge list
|
||||
|
||||
> Note: The benchmark should be run in release mode:
|
||||
>
|
||||
>```shell
|
||||
> cargo run --example framework_benchmark --release
|
||||
>```
|
||||
|
||||
[heavy_compute](./heavy_compute.rs) - How to deal with expensive operations
|
||||
|
||||
## Server-side rendering
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
#![allow(non_snake_case)]
|
||||
|
||||
//! This example proves that instantly resolving futures don't cause issues
|
||||
|
||||
use dioxus::prelude::*;
|
||||
|
||||
fn main() {
|
||||
dioxus::desktop::launch(App);
|
||||
}
|
||||
|
||||
fn App(cx: Scope) -> Element {
|
||||
cx.render(rsx!(Demo {}))
|
||||
}
|
||||
|
||||
fn Demo(cx: Scope) -> Element {
|
||||
let fut1 = use_future(&cx, (), |_| async move {
|
||||
std::thread::sleep(std::time::Duration::from_millis(100));
|
||||
10
|
||||
});
|
||||
|
||||
cx.render(match fut1.value() {
|
||||
Some(value) => {
|
||||
let content = format!("content : {:?}", value);
|
||||
rsx!(div{ "{content}" })
|
||||
}
|
||||
None => rsx!(div{"computing!"}),
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user