Skip to content

Commit ae93d77

Browse files
committed
docs: added extra migration step for .head_with_state()
1 parent 95f5942 commit ae93d77

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/next/en-US/reference/migrating.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ Perseus v0.4.x added a significant number of breaking changes, as almost the ent
2525
19. Change `MyStateRx<'b>` to `&MyStateRx` (you'll need `&'b MyStateRx` if you're not using `#[auto_scope]`).
2626
20. In your `PerseusApp`, change all the times you've provided functions to actually *call* those functions (e.g. `.template(crate::templates::index::get_template)` -> `.template(crate::templates::index::get_template())`).
2727
21. Change any `#[cfg(target_arch = "wasm32")]` instances to be `#[cfg(client)]`, and any `#[cfg(not(target_arch = "wasm32"))]` ones to say `#[cfg(engine)]`.
28-
22. Update your code for any smaller breaking changes that might affect you, as per the [changelog](https://github.com/framesurge/perseus/blob/main/CHANGELOG.md).
29-
23. Run `cargo update` and then `perseus build` to get everything up to date and ensure that your app works! (This might take a while the first time.)
28+
22. Change any head functions that take state to use `.head_with_state()` (the same applies for header setting functions, which can now take state too).
29+
23. Update your code for any smaller breaking changes that might affect you, as per the [changelog](https://github.com/framesurge/perseus/blob/main/CHANGELOG.md).
30+
24. Run `cargo update` and then `perseus build` to get everything up to date and ensure that your app works! (This might take a while the first time.)
3031

3132
We realize that this is a mammoth number of breaking changes, and there will be several more if you're a plugin developer. However, Perseus v0.4.0 brings extraordinary levels of performance and ergonomics to Perseus, removing old quirks and streamlining the internals massively. With the introduction of the new capsules system, Perseus is by far the most powerful frontend framework in the world. If you're having any trouble with updating, please do not hesitate to let us know on [Discord](https://discord.com/invite/GNqWYWNTdp), and we'll happily help you out as soon as we can!
3233

0 commit comments

Comments
 (0)