mirror of
https://github.com/captbaritone/webamp.git
synced 2026-07-21 00:59:29 +00:00
Fix export
This commit is contained in:
parent
cdfa99383a
commit
462cf4b42d
2 changed files with 21 additions and 1 deletions
|
|
@ -25,7 +25,8 @@ export {
|
|||
windowsHaveBeenCentered,
|
||||
centerWindowsIfNeeded,
|
||||
resetWindowLayout,
|
||||
browserWindowSizeChanged
|
||||
browserWindowSizeChanged,
|
||||
ensureWindowsAreOnScreen
|
||||
} from "./windows";
|
||||
export {
|
||||
play,
|
||||
|
|
|
|||
19
redux.md
Normal file
19
redux.md
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
# Thoughts on Redux
|
||||
|
||||
## Actions describe a thing that happened
|
||||
|
||||
Actions with names like `"SET_USER_NAME"` are a smell. Instead, prefer names like `"USERNAME_INPUT_CHANGED"`. Your actions should be a log of _facts_ and should not have any opinions about how those facts are interperated.
|
||||
|
||||
## Actions and action creators are a global concern
|
||||
|
||||
Reduces should know about actions, but actions should not know about your reducers.
|
||||
|
||||
## Your state is a cache
|
||||
|
||||
In principle, your state could simply be an array of every action that has been dispatched, and you could derive the current value by running your reducer in your selector.
|
||||
|
||||
### What would this redux look like? How could you optimize it?
|
||||
|
||||
- Often you need to refer to some other portion of your state within your reducer. How would you do this?
|
||||
|
||||
##
|
||||
Loading…
Add table
Add a link
Reference in a new issue