mirror of
https://github.com/leptos-rs/leptos
synced 2024-09-20 06:21:57 +00:00
69d25d9c63
This warning appears in the browser's console log. ``` hackernews.js:933 At src/routes/stories.rs:39:17, you are reading a resource in `hydrate` mode outside a <Suspense/> or <Transition/>. This can cause hydration mismatch errors and loses out on a significant performance optimization. To fix this issue, you can either: 1. Wrap the place where you read the resource in a <Suspense/> or <Transition/> component, or 2. Switch to using create_local_resource(), which will wait to load the resource until the app is hydrated on the client side. (This will have worse performance in most cases.) ``` |
||
---|---|---|
.. | ||
public | ||
src | ||
Cargo.toml | ||
index.html | ||
LICENSE | ||
Makefile.toml | ||
README.md | ||
rust-toolchain.toml | ||
style.css |
Leptos Hacker News Example
This example creates a basic clone of the Hacker News site. It showcases Leptos' ability to create both a client-side rendered app, and a server side rendered app with hydration, in a single repository
Getting Started
See the Examples README for setup and run instructions.
Quick Start
Run trunk serve --open
or cargo leptos watch
to run this example.