mirror of
https://github.com/penpot/penpot.git
synced 2025-12-12 06:24:17 +01:00
18 lines
486 B
Clojure
18 lines
486 B
Clojure
(ns uxbox.state
|
|
(:require [uxbox.rstore :as rs]
|
|
[beicon.core :as rx]))
|
|
|
|
(defonce stream
|
|
(rs/init {:location :auth/login
|
|
:location-params nil
|
|
:projects-by-id {}
|
|
:pages-by-id {}}))
|
|
|
|
(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 {}}))
|