hyperstack-org / hyperstack-org/hyperstack
Reloader applies imports more than once
- 主要語言
- JavaScript
- 星號
- 538
- 分支
- 41
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I have the following method in my `HyperComponent.rb`
```ruby
def self.decorate(decorator)
imports `decorator(#{self.to_n})`
end
```
```ruby
class AccountForm < HyperComponent
decorate `Mui.withStyles(styles, { withTheme: true })`
# snip
end
```
I use this inside of components to deceore them with higher order components. Whenever the reloader reloads the component, it applies the import again, resulting in very large trees.
First render:

After 10 reloads:

貢獻指南
評估
這個 Issue 還沒有評估資料。