Skip to content

Commit

Permalink
perf(di): improving performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Filipp Dernovoy authored and yarastqt committed Feb 17, 2020
1 parent 0879f7e commit 469966f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/di/di.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,8 @@ export class Registry {
* @param componentsSet set of valid react components
*/
fill(componentsSet: IRegistryComponents) {
this.components = {
...this.components,
...componentsSet,
for (const key in componentsSet) {
this.components[key] = componentsSet[key]
}

return this
Expand Down

0 comments on commit 469966f

Please sign in to comment.