This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-09-29
Channels
- # announcements (4)
- # babashka (66)
- # beginners (7)
- # cljs-dev (6)
- # clojure (12)
- # clojure-europe (28)
- # clojure-nl (1)
- # clojure-norway (75)
- # clojure-uk (16)
- # clojuredesign-podcast (1)
- # clojurescript (16)
- # datascript (6)
- # deps-new (2)
- # dev-tooling (40)
- # exercism (1)
- # fulcro (92)
- # hyperfiddle (25)
- # lsp (19)
- # malli (1)
- # meander (2)
- # nrepl (9)
- # off-topic (5)
- # pathom (1)
- # practicalli (1)
- # re-frame (20)
- # reitit (14)
- # releases (1)
- # sci (86)
- # shadow-cljs (216)
- # sql (13)
- # testing (4)
- # tools-deps (4)
- # vscode (3)
Hmm, I’m getting the re-frame:subscribe called outside reactive context.. but I’m not using subscribe in an event handler, I’m getting the error while updating an atom.. any clues as to what conditions might cause that?
seems to end in goog.events.handleBrowserEvent … I don’t see an entry in the stack trace that corresponds to any of my code
hmmm, I have a popup that has a form backed by an atom.. I bet that popup is connected to an on-click to show the popup.. could that make everything inside that popup be a non-reactive context?
which makes sense at least because it was firing on tabbing between fields on that form which should not itself update the atom!
I simply wouldn't use re-pressed. It's not that much of useful code, you can write your own keyboard event handling in a handful of lines. IMO there's little need to store current shortcut mappings in app-db, as re-pressed does, unless your app must consider it a part of its state for some reason. In which case, you can always use global interceptors to trigger actual listeners re-assignment.
What are folks using for app-dbs these days? Plain maps, datascript, doxa, re-db, etc? (on new/greenfield prod projects)
I use a combination of plain values under some specific keys and a specifically structured nested collection to store normalized data that allows easy updates and queries of the data that I need.
That's essentially what I am after. Im working with datasets that aren't huge (~100s of entities) but have lots of internal references
A hand-rolled solution that started from subgraph that I've eventually completely rewritten with my own needs in mind. :) Not open-source yet.
A few links to related projects, if you're interested. Some of them might or might not be suitable for use with re-frame. • https://github.com/hodur-org/hodur-engine • https://github.com/den1k/subgraph • https://github.com/riverford/compound (a supposedly extended and improved version: https://github.com/riverford/compound/tree/compound2) • https://github.com/lilactown/pyramid • https://github.com/wotbrew/relic • https://github.com/juxt/pull
From browsing these over time, I think that relic
and doxa
look the most promising.
Note: I've done no deep dive, just browsed. And I probably haven't looked at them all.