bdefore / universal-redux

An npm package that lets you jump right into coding React and Redux with universal (isomorphic) rendering. Only manage Express setups or Webpack configurations if you want to.
MIT License
460 stars 48 forks source link

add onRequest callback to renderer #101

Closed eleung closed 3 years ago

eleung commented 8 years ago

I needed the ability to run some code between store creation and matching of a route on the server-side.

Example use case: authentication where onEnter (react-router) is used to auth data inside the redux store. Without this addition it was not possible to set auth data into the store before a route is matched.