I'm exploring Secretary right now, but what's the missing piece that will get me from a link to a Reagent-rendered page and then jumping to that row or even opening a modal with that item?
In my app I'm using a combination of Secretary with some parts of Accountant (https://github.com/venantius/accountant), in order to navigate between routes without reloading the page. There's a blog post here that may help: https://pez.github.io/2016/03/01/Reagent-clientside-routing-with-Bidi-and-Accountant.html
For me, to be able to generate the link from a route, I used Secretary's "named routes" feature
So, in order to get a link I do something like:
#(site/detail-entry-route {:detailEntryId (.toString (:_id %))})
which returns the link to some detail url.
And the Secretary part looks like:
(secretary/defroute detail-entry-route "/detail-entry/:detailEntryId"
[timerollEntryId]
(session/put! :current-page :detail-page)
(session/put! :selected-item-id detailEntryId))
In Secretary the feature is called "named routes": https://github.com/gf3/secretary#named-routes
Hope that helps,
Torsten.
--
Note that posts from new members are moderated - please be patient with your first post.
---
You received this message because you are subscribed to a topic in the Google Groups "ClojureScript" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/clojurescript/7S4axBtK8Pg/unsubscribe.
To unsubscribe from this group and all its topics, send an email to clojurescrip...@googlegroups.com.
To post to this group, send email to clojur...@googlegroups.com.
Visit this group at https://groups.google.com/group/clojurescript.