Skip to content

Examples

Runnable routing apps in the repo, smallest first.

Example What it shows Related guide
routing The basics: reg-route, route-link, the route subscriptions, and a root view that is a case over the route id Tutorial
resources The articles list and detail loaded by route :resources, with views reading the resource cache Load data for a route
infinite_feed :prefetch :intent on a link: hovering the link starts loading the :blocking? true timeline, so the page is ready when you click. The only example that uses intent prefetch Prefetch
realworld_http A full Conduit app: path and query params, a :can-enter sign-in guard with an :rf.route/entry-denied handler that sends the reader to login and back, :on-match loading, and a :can-leave guard on the editor Require sign-in
realworld_resources The same app loading data with route :resources: the profile's favorites tab declares :parent and receives the profile's banner read, data scoped to the session, and a :can-leave editor Resources