Comments (3)
When leptos sends resources, it first serializes them into JSON using serde, renders that into the HTML sent by the SSR, then it deserializes it again.
The problem is you're using deserialize_with
, but not serialize_with
. So during the first step, it serializes dt
as a String into JSON, then when it deserializes it from JSON again during hydration, it encounters this string when it's actually looking for a u64.
from leptos.
Thanks @luxalpa. This explanation sounds correct to me, and I don't see any need for action here — @maxwen let me know if this needs to be reopened.
from leptos.
Thx. will try to see if that solves the error
Add: Yes that solved it - thx again
from leptos.
Related Issues (20)
- relese build causes SIGSEGV and SIGBUS while dev build is just fine HOT 3
- `HtmlElement::attrs` and `DynAttrs::dyn_attrs` Accept `&'static str` Instead of `Oco<'static, str>` HOT 2
- Notify crate (lib) not compiling when installing cargo-leptos HOT 1
- Query parameters are not properly escaped
- Boolean aria attribute values are not handled correctly HOT 3
- LocatorJS integration HOT 1
- Enabling the rkyv feature is failing to compile
- Error during hydration of a recursive component HOT 1
- Introduce "Animated Show" with fallback
- add file upload HOT 1
- `method 'dyn_bindings' is private` when spreading attrs on components
- `try_with` on disposed resource panics instead of returning `None`
- Setting trailing_slash=Strict does not work with nested Routes HOT 3
- 'wasm32.o': section too large HOT 6
- Helix setup not working HOT 1
- Grid is not rendered correctly when treating vec of signals as slices HOT 2
- looks like "class" not work for 0.7 HOT 1
- Resources with concrete default/fallback values HOT 1
- Support autocompletion in the fallback functions HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from leptos.