sycamore-rs / sycamore

A library for creating reactive web apps in Rust and WebAssembly
https://sycamore-rs.netlify.app
MIT License
2.79k stars 148 forks source link

API docs correction for Functions hydrate_to: "use hydrate_to" should read and link as "use hydrate" #578

Closed StarSapien closed 1 year ago

StarSapien commented 1 year ago

In https://docs.rs/sycamore/latest/sycamore/ under Functions hydrate_to it currently reads and links as: "Render a View under a parent node by reusing existing nodes (client side hydration). For rendering under the \ tag, use hydrate_to (https://docs.rs/sycamore/latest/sycamore/fn.hydrate_to.html) instead."

It should read and link as: "Render a View under a parent node by reusing existing nodes (client side hydration). For rendering under the \ tag, use hydrate (https://docs.rs/sycamore/latest/sycamore/fn.hydrate.html) instead."

mc1098 commented 1 year ago

This can be changed here, if you want to submit a PR 🙂: https://github.com/sycamore-rs/sycamore/blob/0512e4a6e7e60b6f2611c6984585c90126b69018/packages/sycamore-web/src/hydrate_node.rs#L356-L365

Change the "[hydrate_to]" to "[hydrate]" on line 357.

StarSapien commented 1 year ago

Thank you for Sycamore, I think it's a great project.