Skip to content

Commit

Permalink
Update all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
LeMisterV committed Mar 29, 2020
1 parent f90fd84 commit 4818f26
Show file tree
Hide file tree
Showing 47 changed files with 4,043 additions and 3,971 deletions.
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -64,7 +64,7 @@ const currentCount = ({ useState, useEvent }) => (
)

createStore(({ withProjection, dispatch }) => {
withProjection(currentCount).subscribe(count => console.log(count))
withProjection(currentCount).subscribe((count) => console.log(count))
// 0

dispatch({ type: 'incremented' })
Expand Down Expand Up @@ -103,7 +103,7 @@ const currentCount = ({ useState, useEvent }) => (
)

createStore(({ withProjection, dispatch }) => {
withProjection(currentCount).subscribe(count => console.log(count))
withProjection(currentCount).subscribe((count) => console.log(count))
// 0

dispatch({ type: 'incremented' })
Expand Down Expand Up @@ -310,12 +310,12 @@ export const eventsNumber = ({ useState, useEvent }) => (
useState(0),
// needs each event just to trigger the projection
useEvent(),
state => state + 1
(state) => state + 1
)

export const lastEventType = ({ useEvent }) => (
// For this projection, no need for a state, just events
useEvent(), event => event.type
useEvent(), (event) => event.type
)

export const moreComplexProjection = ({ useProjection }) => (
Expand Down Expand Up @@ -355,7 +355,7 @@ import { double } from './commands'

export const myDisplayEffect = ({ withProjection }) => {
withProjection(currentCount).subscribe(
count => console.log('Current count', count),
(count) => console.log('Current count', count),
// Immediately logs "Current count 0", than other count values on each change
)
}
Expand Down
2 changes: 1 addition & 1 deletion examples/count-comonjs/entry.js
Expand Up @@ -18,7 +18,7 @@ const currentCount = ({ useState, useEvent }) => (
)

createStore(({ withProjection, dispatch }) => {
withProjection(currentCount).subscribe(count => console.log(count))
withProjection(currentCount).subscribe((count) => console.log(count))
// 0

dispatch({ type: 'incremented' })
Expand Down
14 changes: 7 additions & 7 deletions examples/count-comonjs/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion examples/count-esmodule/entry.js
Expand Up @@ -18,7 +18,7 @@ const currentCount = ({ useState, useEvent }) => (
)

createStore(({ withProjection, dispatch }) => {
withProjection(currentCount).subscribe(count => console.log(count))
withProjection(currentCount).subscribe((count) => console.log(count))
// 0

dispatch({ type: 'incremented' })
Expand Down

0 comments on commit 4818f26

Please sign in to comment.