Skip to main content

useLocationRR

Datalayer Core


Datalayer Core / useLocationRR

Variable: useLocationRR()

const useLocationRR: () => Location = ReactRouterDom.useLocation

Defined in: src/navigation/adapters/react-router.tsx:13

Returns the current location object, which represents the current URL in web browsers.

Note: If you're using this it may mean you're doing some of your own "routing" in your app, and we'd like to know what your use case is. We may be able to provide something higher-level to better suit your needs.

Returns

Location

See

https://reactrouter.com/v6/hooks/use-location