hyperstack-org / hyperstack-org/hyperstack
Reloader applies imports more than once
- Langage dominant
- JavaScript
- Étoiles
- 538
- Forks
- 41
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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:

Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.