How to use the connected-react-router.getLocation function in connected-react-router

To help you get started, we’ve selected a few connected-react-router examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github streamr-dev / streamr-platform / app / src / marketplace / modules / publish / actions.js View on Github external
setTimeout(() => {
                const location = getLocation(getState())

                // Do call only if we are still in product page.
                if (location.pathname.includes(productId)) {
                    dispatch(getProductById(productId))
                }
            }, FIVE_SECONDS)
github streamr-dev / streamr-platform / app / src / marketplace / modules / unpublish / actions.js View on Github external
setTimeout(() => {
                const location = getLocation(getState())

                // Do call only if we are still in product page.
                if (location.pathname.includes(productId)) {
                    dispatch(getProductById(productId))
                }
            }, FIVE_SECONDS)
github streamr-dev / streamr-platform / app / src / marketplace / modules / purchase / actions.js View on Github external
setTimeout(() => {
                const location = getLocation(getState())

                // Do call only if we are still in product page.
                if (location.pathname.includes(productId)) {
                    dispatch(getProductSubscription(productId))
                }
            }, FIVE_SECONDS)
        })
github decentraland / builder / src / modules / ui / share / selectors.ts View on Github external
  (state: RootState) => getLocation(state),
  (location) => {