2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Turbo Mount + Vue.js でRegle on Rails

Last updated at Posted at 2025-12-04

Rails にTurbo Mount(gem)を導入して、Vue.jsのコンポーネントをHotwireと連動させる場合、Vue.jsのコンポーネントの中でRegle(1.11.0以降)を利用する際には、turbo-mount/vue がデフォルト・エクスポートしているplugin をインポートし、pluginのmountComponentを上書きする必要があります。

この方法は Turbo Mount0.4.3 では有効ですが、将来のバージョンではTurbo Mount側の変更により無効になり、別の方法に
書き換える必要が出てくる可能性があります。

ERBの記述は、次のようになっています。

2
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?