Electrode.io Adventures Part 1: Route based store initialization

The problem

The solution

News Flash

  • Store for route/ is created with the default store initializer by src/server/views/index-view.jsx
  • Store for route/some-route is created by the initializer found at src/server/routes/some-route.jsx
  • Store for route /some-other-route is created by the initializer found at src/server/routes/someFunkyFilename.jsx

--

--

--

www.thedartcode.com

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
thedartcode

thedartcode

www.thedartcode.com

More from Medium

Packaging a Typescript library — Part 1

Testing DOM mutations with Jest

Realtime Web Apps — Hero to Zero p2 -Server Sent Events-

Comparison of Node.js Package Managers