getSearchAdapter always creates new instance for same adapterName #2960
Labels
3: Medium complexity
bug
Bug reports
P2: Important
Priority mark - still high ;)
refactor
Code refactoring
Milestone
Current behavior
If you call getSearchAdapter successively several times with the same adapterName, a new instance will be created each time.
Expected behavior
If you call getSearchAdapter successively several times with the same adapterName, a new instance creates only once. Other calls should return existing instance.
Repository
https://github.com/DivanteLtd/vue-storefront/blob/master/core/lib/search/adapter/searchAdapterFactory.js
line 10
Can you handle fixing this bug by yourself?
The text was updated successfully, but these errors were encountered: