0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-24 07:29:08 -05:00
penpot/frontend/uxbox/state.cljs
2015-12-30 00:18:59 +02:00

14 lines
361 B
Clojure

(ns uxbox.state
(:require [uxbox.rstore :as rs]
[beicon.core :as rx]))
(defonce stream
(rs/init {}))
(defonce state (atom {}))
(rx/to-atom stream state)
(rs/emit! (rs/reset-state {:location :auth/login
:location-params nil
:projects-by-id {}
:pages-by-id {}}))