Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Write docs showing new sexier subscriptions approach in v0.3.0 #16

Closed
mike-thompson-day8 opened this issue Mar 4, 2015 · 3 comments
Closed
Labels

Comments

@mike-thompson-day8
Copy link
Contributor

No description provided.

@mike-thompson-day8 mike-thompson-day8 changed the title Write docs showing new sexier subscriptions approach in v0.2.0 Write docs showing new sexier subscriptions approach in v0.3.0 Mar 6, 2015
@koddo
Copy link

koddo commented May 6, 2015

Is it about using re-frame/subscribe instead of re-frame/register-sub?

(defn phone-page [{phone-id :phone-id}]
  (let [phone (re-frame/subscribe [:phone-query phone-id])
        image-url (re-frame/subscribe [:selected-image-url phone-id])]
    (fn []
      [:div
       [:img {:src @image-url
              :class "phone"}]
       [:h1 (:name @phone)]
       [:p (:description @phone)]
       [thumbnails phone]
       [specs phone]])))

From here: https://github.com/dhruvp/angular-phonecat-re-frame

@mike-thompson-day8
Copy link
Contributor Author

@koddo The next version of re-frame, v0.5.0, will have a small tweak to the way subscription handlers are written. That means a small tweak to register-sub.

Mind you, I have been threatening this for about two months now and in the meantime v 0.3 and 0.4 have come and gone. So don't hold your breath with too much excitement. :-)

@mike-thompson-day8
Copy link
Contributor Author

I'm going to close this ticket because, better late than never, it has been superseded by #170.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants