reload collections when creating
This commit is contained in:
@@ -12,6 +12,7 @@ import Data.Aeson qualified as A
|
||||
import Data.Aeson.KeyMap qualified as AM
|
||||
import Miso
|
||||
import Schema
|
||||
import Effect (Eff)
|
||||
|
||||
data Model = Model
|
||||
{ collection :: String,
|
||||
@@ -34,8 +35,8 @@ data Action
|
||||
= NoOp
|
||||
deriving (Eq, Show)
|
||||
|
||||
updateModel :: Action -> Model -> Effect Action Model
|
||||
updateModel NoOp m = noEff m
|
||||
updateModel :: Action -> Model -> (Effect Action Model, [Eff])
|
||||
updateModel NoOp m = (noEff m, [])
|
||||
|
||||
viewModel :: Model -> View Action
|
||||
viewModel m =
|
||||
|
||||
Reference in New Issue
Block a user