re-frame

https://github.com/Day8/re-frame/blob/master/docs/README.md https://github.com/Day8/re-frame/blob/master/docs/External-Resources.md
p-himik 2021-05-26T10:19:53.038500Z

Use defonce when defining history instead of def.

Joni Hiltunen 2021-05-26T10:21:18.038700Z

Amazing! Thanks. Should I submit an issue or a pull repo (not sure I know how) for the template?

p-himik 2021-05-26T10:21:18.038900Z

When your code gets hot-reloaded, the routes namespace is re-evaluated, so with (def history ...) you create a new history object each time it's re-evaluated. But you don't call start! then, so pushy ends up using a new history that hasn't been used in start!.

p-himik 2021-05-26T10:21:49.039100Z

> Should I submit an issue or a pull repo (not sure I know how) for the template? Sure! I think it makes sense. First an issue and then a PR for that issue.

Joni Hiltunen 2021-05-26T10:22:24.039300Z

should be a trivial change if I know where to find the code in the template thing 😄 thanks again

1👍