:$ctx reference in sync flow successsweet-tooth.frontend.routes/route: get a route from the frontend
router::stnf/not-found routesweet-tooth.frontend.routes.protocol/route can now take a route namesweet-tooth.frontend.sync.dispatch.ajax/request-methods now
includes all supported request methodssweet-tooth/sweet-tooth-frontend to sweet-tooth/frontendCan now specify :method as a sync opt, further allowing the
request signature (name) to diverge from the sync calls
Cleaned up form macro, getting rid of unnecessary duplication
added :default-on to sync opts to eliminate the need to always
have to specify the default handlers whenever you want to have
custom sync handlers. If you need to treat default handlers in some
custom way you can do something like:
{:default-on {:success :skip}
:on {:success [[:first :event]
[::stsf/default-sync-success :$ctx]
[:next :event]]}
But you're probably better off just writing a named handler.
sweet-tooth.frontend.sync.flow/sync-entity-req: use like
(sync-entity-req :put :comment {:id 1 :content \"comment\"}). Handles common case of just wanting to sync an
entity by associating the entity into the :route-params and
:params sync options.:sweet-tooth.frontend.sync.flow/sync-entity handler:sweet-tooth.frontend.sync.flow/sync-entity-once handler:sweet-tooth.frontend.sync.flow/sync-unless-active handler, now
used by sweet-tooth.frontend.form.flow/submit-form to prevent
double form submission:sweet-tooth.frontend.nav.flow/navigate-route handler, allows you
to navigate using route data instead of a path stringCan you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |