Closed aoipril closed 4 months ago
Fix use_state(|| props.article.clone()) and props.article not synchronized in case of partial tab switching.
use_state(|| props.article.clone())
props.article
Add a debug log in file crates/conduit-wasm/src/components/article_preview.rs
crates/conduit-wasm/src/components/article_preview.rs
log::debug!("DEBUG: props.article: {:?}", props.article.clone()); log::debug!("DEBUG: use_state: {:?}", article.clone());
In some cases their output is different causing the article to be displayed incorrectly
Major changes:
use_effect_with_deps
use_effect_with
References:
Contains most of the commands found in the README.md file. Justfile:
just install-wasm-pack
.env.example
.env
just env
just trunk-serve
just trunk-build
just test
just install-tauri
just tauri-dev
just tauri-build
just create-yew-app
just app-serve
thanks
Fix a article rendering bug:
Fix
use_state(|| props.article.clone())
andprops.article
not synchronized in case of partial tab switching.Add a debug log in file
crates/conduit-wasm/src/components/article_preview.rs
In some cases their output is different causing the article to be displayed incorrectly
Update dependencies:
Major changes:
use_effect_with_deps
withuse_effect_with
References:
Add justfile:
Contains most of the commands found in the README.md file. Justfile:
just install-wasm-pack
.env.example
to.env
just env
just trunk-serve
just trunk-build
just test
just install-tauri
just tauri-dev
just tauri-build
just create-yew-app
just app-serve