Skip to content
This repository has been archived by the owner on Oct 10, 2023. It is now read-only.

Refactor non-identity live_components to normal components. #23

Open
zorn opened this issue Oct 12, 2021 · 0 comments
Open

Refactor non-identity live_components to normal components. #23

zorn opened this issue Oct 12, 2021 · 0 comments

Comments

@zorn
Copy link
Contributor

zorn commented Oct 12, 2021

Per this documentation, we can likely refactor many of the live_components that are not connected to an identity to the new simple component type.

A component must receive the :id assign as argument, which is used to uniquely identify the component. A component will be treated as the same component as long as its :id does not change.

Note: previous LiveView versions allowed the :id to be skipped on live_component but those are now discouraged since the addition of function components, outlined in Phoenix.Component.

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant