1.0.6 • Published 9 months ago

react-native-trpc-flipper-devtools v1.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

react-native-trpc-flipper-devtools

Setup

  1. Install the package and dependencies:
yarn add -d react-native-apollo-devtools-client react-native-flipper
  1. Initialize the plugin as a tRPC client middleware:
import { createTRPCReact } from "@trpc/react-query";
import { httpBatchLink } from "@trpc/client";
import { flipperDevToolsLink } from "react-native-trpc-flipper-devtools";

export const trpc = createTRPCReact<AppRouter>();

export const trpcClient = trpc.createClient({
  links: [
    flipperDevToolsLink({
      enabled: __DEV__,
    }),
    httpBatchLink({
      url: "http://localhost:3000",
    }),
  ],
});

Setup Flipper

  1. Open the Plugins Manager > Install Plugins tab, search for flipper-plugin-react-native-trpc and install the plugin.

  2. Restart flipper.

  3. You should now see tRPC DevTools on the sidebar.

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago