Skip to content

Commit 7a3dd63

Browse files
committed
fix(examples): 🐛 fixed type mismatch in showcase example
RLS didn't pick this up because macros apprently...
1 parent eb21299 commit 7a3dd63

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

examples/showcase/src/templates/index.rs

+6-3
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ pub fn get_template<G: GenericNode>() -> Template<G> {
2222
}
2323

2424
#[perseus::autoserde(build_state)]
25-
pub async fn get_static_props(_path: String, _locale: String) -> RenderFnResultWithCause<String> {
26-
Ok(serde_json::to_string(&IndexPageProps {
25+
pub async fn get_static_props(
26+
_path: String,
27+
_locale: String,
28+
) -> RenderFnResultWithCause<IndexPageProps> {
29+
Ok(IndexPageProps {
2730
greeting: "Hello World!".to_string(),
28-
})?)
31+
})
2932
}

0 commit comments

Comments
 (0)