Skip to main content

[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

Status: Completed

Log in to comment and vote

No comments yet

Be the first to share your thoughts.