scandipwa / scandipwa

Next-generation front-end for Magento 2

Home Page:https://scandipwa.com/?utm_source=github&utm_medium=readme&utm_campaign=general

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

getStore has no namespace

MagicLegend opened this issue · comments

Is your feature request related to a problem?

Hi,

Currently the code that is responsible for creating the Redux store has no namespace, and thus no plugins are possible. This means it is not possible to inject custom store enhancers.

v5: https://github.com/scandipwa/scandipwa/blob/%40scandipwa/scandipwa%405.3.6/packages/scandipwa/src/util/Store/index.js#L36

v6: https://github.com/scandipwa/scandipwa/blob/%40scandipwa/scandipwa%406.2.1/packages/scandipwa/src/util/Store/index.ts#L43

Describe the solution you'd like to see

Add namespace tags for the function so plugins are possible.

Additional context

I'm integrating Sentry.io, which requires injecting its store enhancer to integrate with Redux.