[Essentials] - Universal React-Query

  • Fetch data with ’@tanstack/react-query’ on server / browser / mobile

  • createQueryBridge()

    1. routeDataFetcher = Fetcher Function to use with react-query

    2. routeParamsToQueryKey = Map route params to query key

    3. routeParamsToQueryInput = Map route params to fetcher fn inputs

    4. fetcherDataToProps = Map the resulting data to props

  • <UniversalRouteScreen/>

    • executes the queryBridge fetching steps automatically in each env

  • More info: https://fullproduct.dev/docs/data-fetching

Please authenticate to join the conversation.

Upvoters
Status

Completed

Board
💡

Features / Fixes

Date

7 months ago

Author

Thorr Stevens

Subscribe to post

Get notified by email when there are changes.