redux-capi

redux-capi

    ›Reference

    Introduction

    • What it is
    • Usage
    • Rationale
    • Context

    API Specs

    • API Spec
    • Redactions
    • Selectors
    • Thunks
    • Mounting
    • Composing
    • Validation

    Reference

    • createAPI
    • API
    • api.mount()
    • api.mock()
    • Injection
    • Utilities

    Examples

    • Todo List

    api.mount()

    Mount the API is the equivalent of connect in react-redux except that the store is explicitly passed as an argument rather than being found from the nearest <Provider> component.

    apiFunction.mount(reduxStore, mountPoint);
    

    The mounting would normally be done in the top level function where the store is normally created. This keeps the mounting separate from the spec definition since the specs themselves do not need knowledge of where exactly they are mounted in the state.

    ← APIapi.mock() →
    redux-capi
    Docs
    Getting Started (or other categories)Guides (or other categories)API Reference (or other categories)
    Community
    User ShowcaseStack OverflowProject ChatTwitter
    More
    BlogGitHubStar
    Facebook Open Source
    Copyright © 2020 Sam Elsamman