REPL :require example
This commit is contained in:
parent
c8b128e33c
commit
87109a511b
1 changed files with 8 additions and 1 deletions
|
|
@ -69,7 +69,14 @@ In case this state needs to be cleaned / destryed between reloads, there is also
|
|||
```
|
||||
|
||||
That is pretty much it. But wait, there is more.. this state is _a top level being_, which means it can be simply
|
||||
`required` by other namespaces.
|
||||
`required` by other namespaces or in REPL:
|
||||
|
||||
```clojure
|
||||
dev=> (require '[app.nyse :refer [conn]])
|
||||
nil
|
||||
dev=> conn
|
||||
#object[datomic.peer.LocalConnection 0x1661a4eb "datomic.peer.LocalConnection@1661a4eb"]
|
||||
```
|
||||
|
||||
### Using State
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue