SMX-LTD / Re Frame Cookie Fx
Om nom nom nom.
Stars: ✭ 17
Projects that are alternatives of or similar to Re Frame Cookie Fx
reframe-starter
re-frame starter app. Includes shadow-cljs, deps.edn, garden, re-frame-10x and reitit.
Stars: ✭ 16 (-5.88%)
Mutual labels: re-frame
Re Frame Template
A Leiningen template for creating a re-frame application (client only)
Stars: ✭ 454 (+2570.59%)
Mutual labels: re-frame
elo
Elo ranking platform implemented in Clojure and re-frame
Stars: ✭ 17 (+0%)
Mutual labels: re-frame
Re Graph
A graphql client for clojurescript and clojure
Stars: ✭ 366 (+2052.94%)
Mutual labels: re-frame
re-frame-routing
ClojureScript (re-frame) library that manages routing and route state.
Stars: ✭ 16 (-5.88%)
Mutual labels: re-frame
Cljfx
Declarative, functional and extensible wrapper of JavaFX inspired by better parts of react and re-frame
Stars: ✭ 624 (+3570.59%)
Mutual labels: re-frame
notebook
Web based Clojure notebook application/-library.
Stars: ✭ 96 (+464.71%)
Mutual labels: re-frame
Conduit
Real world application built with ClojureScript + re-frame
Stars: ✭ 422 (+2382.35%)
Mutual labels: re-frame
re-frame-http-fx-alpha
A ClojureScript client library for HTTP requests. Provides a re-frame "effect handler" keyed :http
Stars: ✭ 37 (+117.65%)
Mutual labels: re-frame
Lein template descjop
A Leiningen template(Clojure/ClojureScript Project) for Web based desktop application with Electron (atom-shell).
Stars: ✭ 394 (+2217.65%)
Mutual labels: re-frame
nw-calculator
A crafting calculator for the New World game
Stars: ✭ 16 (-5.88%)
Mutual labels: re-frame
Re Frame 10x
A debugging dashboard for re-frame. X-ray vision as tooling.
Stars: ✭ 491 (+2788.24%)
Mutual labels: re-frame
clean-todos
📋 A todo example leveraging clean architecture in Clojure
Stars: ✭ 75 (+341.18%)
Mutual labels: re-frame
Status React
a free (libre) open source, mobile OS for Ethereum
Stars: ✭ 3,307 (+19352.94%)
Mutual labels: re-frame
Re Com
A ClojureScript library of reusable components for Reagent
Stars: ✭ 690 (+3958.82%)
Mutual labels: re-frame
Re Frame
A ClojureScript framework for building user interfaces, leveraging React
Stars: ✭ 4,980 (+29194.12%)
Mutual labels: re-frame
Cookies Effects Handler for re-frame
Om Nom Nom Nom - Cookie Monster, Sesame Street
Herein a re-frame "Effects Handler", which enables various cookie operations using goog.net.Cookies.
Quick Start
1. Add Dependency
2. Registration & Use
In the namespace where you register your event handlers, prehaps called
handlers.cljs
, you have two things to do:
First, add this require
to the ns
:
(ns app.handlers
(:require
...
[com.smxemail.re-frame-cookie-fx] ;; <-- add this
...))
Second, write an event handler which uses this effect:
(reg-event-fx
:handler-with-cookies
(fn [{:keys [db]} _]
{:cookie/set {:name "cookie-monster-says"
:value "Om Nom Nom Nom!"}}))
Other supported effects include the below which are documented in the source:
:cookie/remove
:cookie/clear
To use a coeffect:
(reg-event-fx
:handler-with-cookie-cofx
[(inject-cofx :cookie/get [:cookie-monster-says])]
(fn [{db :db cookies :cookie/get} _]
...
Other supported coeffects include the below which are documented in the source:
:cookie/enabled?
:cookie/empty?
:cookie/keys
:cookie/values
:cookie/count
Authors
License
Copyright © 2016 SMX Ltd.
Distributed under the Eclipse Public License, the same as Clojure.
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].