Skip to content
Source
Sign inSign up
TanStack/cli

fix: restore tRPC provider wiring in React scaffolds #356

Mergedtannerlinsleymerged 1 commit intomain fromrefs/pull/356/headmerged by tannerlinsley

tannerlinsleycommented

Summary

  • change the React TanStack Query integration type from root-provider to provider
  • ensure generated root route wraps the app with TanStackQueryProvider, which also supplies the TRPCProvider when tRPC is enabled

Why

  • with root-provider, the provider integration was never injected into __root.tsx, so useTRPC() ran outside TRPCProvider
  • this addresses the scaffold/runtime failure reported in #271 (and duplicate #275)
    1. tannerlinsley merged thisca62d9c

    2. tannerlinsley closed this

Sign in to join this conversation.