Examples of singleton idents being useful within data in the om.next default database format
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(def db-1 | |
{:ui.active-tab | |
[:ui.accounts-tab/by-id nil] ; May also be [:ui.post-tab/by-id :_2329cc] or [:ui.post-tab/by-id :_a73f92] | |
:ui.tab/order | |
[[:ui.post-tab/by-id :_2329cc] [:ui.accounts-tab/by-id nil] [:ui.post-tab/by-id :_a73f92]] | |
:ui.accounts-tab/by-id | |
{nil {:ui.accounts-tab/x "The accounts tab"}} | |
:ui.post-tab/by-id | |
{:_a73f92 {:ui.post-tab/x "A post"}} | |
:_2329cc {:ui.post-tab/x "Another post"}}) | |
(def db-2 | |
{:ui.active-tab | |
[:ui.accounts-tab/by-id '_] ; May also be [:ui.post-tab/by-id :_2329cc] or [:ui.post-tab/by-id :_a73f92] | |
:ui.tab/order | |
[[:ui.post-tab/by-id :_2329cc] [:ui.accounts-tab/by-id '_] [:ui.post-tab/by-id :_a73f92]] | |
:ui.accounts-tab/by-id | |
{:ui.accounts-tab/x "The accounts tab"} | |
:ui.post-tab/by-id | |
{:_a73f92 {:ui.post-tab/x "A post"}} | |
:_2329cc {:ui.post-tab/x "Another post"}}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment