{"repo":"relay-tools/found-relay","free":true,"listed":false,"github":"https://github.com/relay-tools/found-relay","clone":"git clone https://github.com/relay-tools/found-relay.git","description":"Relay integration for Found","language":"JavaScript","stars":274,"topics":["found","relay","react","router"],"license":"MIT","category":"ui-components","readme_excerpt":"Found Relay [![Travis][build-badge]][build] [![npm][npm-badge]][npm] Relay integration for Found. Table of Contents generated with DocToc - Usage - Examples - Guide - Installation - Router configuration - Route configuration - query or getQuery - cacheConfig or getCacheConfig - fetchPolicy - prepareVariables - render Usage Examples - TodoMVC - TodoMVC with server-side rendering Guide Installation Router configuration Create a router component class using createFarceRouter or a lower-level API. Create a Resolver with your Relay environment, then use that as the resolver instead of the default Found resolver. Route configuration Route configuration works similarly to that in Found, but instead of data or getData , routes accept properties that control Relay data fetching. Each route behaves as if it were its own , except that all data fetching happens in parallel, even for nested routes. Found Relay routes accept the following properties: - query or getQuery : the Relay query for the route, or a method that returns the Relay query for the route - cacheConfig or getCacheConfig : the cache configuration for the route, or a method that returns the cache configuration for the route - fetchPolicy or getFetchPolicy : the fetch policy for the Relay data for the route, or a method that returns the fetch policy for the Relay data for the route; network-only (the default), store-and-network , or store-or-network - prepareVariables : a method to apply additional transformations to the rou","default_branch":null,"files":null,"tree":[],"storefront":"/r/relay-tools","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/relay-tools/found-relay/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}