Skip to content

Remove <cable-ready> element#237

Merged
marcoroth merged 2 commits intomasterfrom
revert-cable-ready-element
Jan 16, 2023
Merged

Remove <cable-ready> element#237
marcoroth merged 2 commits intomasterfrom
revert-cable-ready-element

Conversation

@marcoroth
Copy link
Member

@marcoroth marcoroth commented Jan 16, 2023

Type of PR

Removal

Description

The <cable-ready> element was extracted to https://github.com/cableready/element so that people which are currently relying on it can still use it. While it works perfectly fine, it's discouraged to use it for new use-cases.

Reverts #139

Why should this be removed

The <cable-ready> element is conceptionally very similar to Turbo Streams. To not confuse people more which technology to choose we are going to remove it from the core part of CableReady.

With the recent additions of Custom Turbo Stream Actions in 7.2 Turbo got a lot more powerful. In addition to that there are emerging projects like turbo_power which bring the same level of power to Turbo Streams as CableReady does.

There are still some reasons to choose CableReady over Turbo Streams, but the <cable-ready> element isn't one of them. CableReady's strength is that it's exactly not a custom element. If you were planning to use <cable-ready> you should use Turbo Streams instead. For the sake of "backwards compability" (technically it was never official released) we are going to extract the <cable-ready> element to a separate repo.

Checklist

  • My code follows the style guidelines of this project
  • Checks (StandardRB & Prettier-Standard) are passing
  • This is not a documentation update

@marcoroth marcoroth force-pushed the revert-cable-ready-element branch from f20ee78 to 4bc4773 Compare January 16, 2023 02:32
@marcoroth marcoroth merged commit 732c421 into master Jan 16, 2023
@marcoroth marcoroth deleted the revert-cable-ready-element branch January 16, 2023 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant