Fork me on GitHub
#datomic
<
2022-05-02
>
cl_j08:05:57

hi anybody knows how to properly use mount state in datomic ion lambda? I got the error class mount.core.DerefableState cannot be cast to class java.lang.String (mount.core.DerefableState is in unnamed module of loader clojure.lang.DynamicClassLoader @5943daef; java.lang.String is in module java.base of loader 'bootstrap') after deployed to aws, but works correctly in local repl.

magnars08:05:50

Sounds like you haven't started your mount states.

👍 1
cl_j08:05:11

tried to deploy several times, sometimes it works, sometimes it doesn't. i am not familiar with mount + ion lambda. do we need to manually start the states? i thought requiring the states is enough

magnars08:05:47

You have to run mount.core/start

cl_j08:05:08

Thanks @U07FCNURX! I am wondering why sometimes it works

cl_j08:05:09

is it a bad idea to just call (mount.core/start) , or should i pick the required states to start?

magnars09:05:04

I think it is reasonable to start all the mount states as a default.

👍 1
vijaykiran19:05:25

I guess someone should fix the git conflicts properly 🙂

😁 4