hyperstack-org / hyperstack-org/hyperstack

investigate having Tag#method_missing define method if found

オープン
#182 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement
主要言語
JavaScript
スター
538
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

The `method_missing` method in the Tag module does a rather expensive lookup to find the component class corresponding to the component method. We should experiment with defining the method once its found.

The only problem is that this will break obscure cases where component classes get redefined in new scopes. For example say you have a component `Foo::Baz` and you mount it within the `Foo::Bar::Bogus` component. Later you define a component `Foo::Bar::Baz`. If you don't dynamically lookup the component everytime, you won't find the new Baz.

I guess you could fix this by keeping track of all the components that have been defined, and then remove them if the new definition shadows them.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。