Kaede Hoshikawa
00b94d0051
Make Switch to accept a closure as render function directly ( #2659 )
...
* RenderFn can be be directly Fn() now.
* Switch switch to function component.
* Make Link a function component.
* Remove non-exhaustive.
* Add migration guide.
* Update Website Docs.
* Fix CI.
* Pushing to Navigator no longer requires an owned instance.
* Fix CI.
* Fix code size.
* Further optimisation.
2022-05-06 09:56:49 +09:00
Muhammad Hamza
c28a71e78e
Use nightly for Rustfmt ( #2630 )
...
* add rustfmt.toml, use nightly in CI, update contributing docs
* run `cargo +nightly fmt`
2022-04-21 23:21:15 +05:00
Kaede Hoshikawa
e46ae55cab
SSR Hydration ( #2552 )
...
* Bring changes to this branch.
* Add feature hydration.
* Hydrate text.
* Hydrate tag.
* Hydrate node.
* Hydrate List.
* Hydrate Suspense.
* Hydrate component.
* Renderer::hydrate.
* Add example and tests.
* Fix comp_id.
* Move some code away from generics.
* Fix everything.
* trybuild?
* Collectable!
* Phantom component.
* Migrate docs as well.
* Update example.
* Fix docs and improve debug message.
* Minor fixing.
* Add hydration to feature soundness check.
* Fix name in debug.
* Remove Shift.
* Remove comment.
* Adjust readme.
* Update website/docs/advanced-topics/server-side-rendering.md
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
* Update packages/yew/src/dom_bundle/bnode.rs
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
* Update packages/yew/src/dom_bundle/bnode.rs
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
* Once via structopt, now direct clap.
* Fix docs and empty fragment.
* Remove struct component warning.
* Move function router into a separate binary.
* Optimise Code Logic.
* Fix condition.
* Fix rendering behaviour.
* Fix comment.
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-04-03 08:00:16 +09:00
Kaede Hoshikawa
8bc2212716
#[cfg(feature = "render")] and yew::Renderer (#2498 )
...
* Bring changes to this branch.
* Bring changes to this branch.
* Add feature render and renderer.
* Bring changes to this branch.
* Migrate examples to Renderer.
* Satisfy no any render.
* Satisfy ssr.
* Satisfy feature render.
* Lint feature soundness.
* Suppress tests.
* Fix pr-flow, update docs.
* Add a notice.
* Adjust visibility.
* Correctly feature gate tests.
* make test scope available under feature render.
* Fix CI.
* Fix CI.
* Restore tests module to its original place as well.
* Make bundles crate private.
* Make most bundle APIs private.
* Adjust docs.
* Adjust debug implementation.
* Replace start_app with Renderer.
* Adjust documentation.
* Remove unused lint.
* Remove start_app from docs.
* DomBundle -> ReconcileTarget.
* Adjust documentation.
* Once render, now csr.
* Fix docs as well.
2022-03-20 00:48:47 +09:00
Kaede Hoshikawa
839a7965ad
Function Router Example ( #2494 )
...
* Move example from #2453 .
* Add implementation note.
* Update Implementation Note.
2022-03-07 18:38:22 +05:00