When reading the documentation on Phoenix.Component — Phoenix LiveView v0.20.17, it says it can be used to render child liveviews inside regular liveviews.
But when I start testing this I run into this error: handle_params/3 is not allowed on child LiveViews, only at the root
. The documentation on handle_params
(Phoenix.LiveView — Phoenix LiveView v0.20.17) doesn’t say anything about that though.
So I’m wondering:
- why handle_params is not allowed?
- are there any other differences between a root and child liveview. I originally thought that there would be no differences as I couldn’t find any documentation on differences.