om-next

    3热度

    1回答

    我试图让我的头绕过正常化,并认为我正在取得进展,但我再次偶然发现,不知道我是否只是不正确地思考问题。我如何规范当前用户的消息? (def init-data {:session {:user/id 1 :messages [{:message/id 1}]} :messages [{:message/id 1 :text "Message 1"}

    2热度

    1回答

    我一直在试图围绕查询包裹头部。假设我想要一个带有多个表视图的Root组件。 official tutorial suggests - 一种方法是拥有一个没有查询的表视图组件。 然后你可以传递需要通过道具使用的任何数据,而且工作得很好。 但这是非常简单的情况。在非平凡的应用程序中,可能您希望TableView带有查询,因为在UI树下可能有一些复杂的UI组件结构 - 表头,页脚,行,单元格等。 现在t

    1热度

    1回答

    我想了解Om Next中的规范化,标识和查询概念。每次我想我拥有它时,我都会陷入一种似乎困扰着我的新形势。 我有一个返回下列数据的远程: {:users [ {:id 1, :email "[email protected]", :role 1}, {:id 3, :email "[email protected]", :role 1},

    1热度

    2回答

    在嗡接着,如数据时: {:table {:name "Disk Performance Table" :data [:statistics :performance]} :chart {:name "Combined Graph" :data [:statistics :performance]} :statistics {:performance {:cp