Skip to content

Releases: relay-tools/react-router-relay

v0.6.1

29 Sep 03:41
Compare
Choose a tag to compare

In some cases, the previous logic for generating unique query names based on referential equality of routes would break due to the route objects changing. This would lead to routes getting stuck in renderLoading forever due to changes in the generated unique query names. This release adds support for explicitly named routes, which allows us to match query names even when the route objects break referential equality.

v0.6.0

26 Sep 01:40
Compare
Choose a tag to compare
  • Add support for Relay route parameters coming from location state
  • Only update the Relay route on actual location changes

v0.5.0

12 Sep 15:15
Compare
Choose a tag to compare

This brings the package up-to-date with the recent changes in each of the major dependency packages.

v0.4.5

10 Sep 19:10
Compare
Choose a tag to compare

This release adds hasVariable to RouteAggregator, which provides support for future releases of Relay that require this method on containers.

v0.4.4

03 Sep 05:54
Compare
Choose a tag to compare

This release fixes the React Router peer dependency. We're only compatible with React Router 1.0.0-beta3 for now.

v0.4.3

02 Sep 17:35
Compare
Choose a tag to compare
  • Match the new requirements for Relay containers in v0.2.1
  • Support using the same query for multiple routes

v0.4.2

28 Aug 17:01
Compare
Choose a tag to compare

This adds back support for the case where a route component's parent calls React.cloneElement to inject additional props into the route component by passing through props into the wrapped component from containers.

Fix dependencies

27 Aug 21:58
Compare
Choose a tag to compare

Added a missing babel-runtime dependency.

Refactored internals and new API

27 Aug 21:41
Compare
Choose a tag to compare

We're now react-router-relay (instead of relay-nested-routes)!

@taion did some great refactoring with help from @cpojer to simplify the library while making it support more use cases.

Nested routes and queries are still aggregated up to a single Relay.RootContainer and dispatched in one go for batching and server side rendering, but now it's possible to provide RootContainer-esque functions on a per route basis like renderLoading, renderFetched, and renderFailed, in order to customize the experience for your app.

Thank you @taion and @cpojer for all your hard work!