Function useCatalog

  • Hook to get currently loaded catalog

    Example

    In React component retrieve current catalog with

    import { useCatalog } from '@i-vresse/wb-core/dist/store'

    function MyComponent() {
    const catalog = useCatalog()
    return <div>{catalog.title}</div>
    }

    Returns

    catalog value

    Returns ICatalog

Generated using TypeDoc