Skip to content

Tags: neurosnap/starfx

Tags

v0.13.4

Toggle v0.13.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
feat: support multiple stores registering the same thunk (#51)

* feat(thunk): enable multiple stores to register thunks with unique identifiers

* refactor(store): remove unused getStoreId function

v0.13.3

Toggle v0.13.3's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
chore: update esm.sh to latest

v0.13.2

Toggle v0.13.2's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
fix(thunk): run thunk supervisors immediately on register

For whatever reason, dispatching actions to register all the supervisor
thunks was too slow and causing a regression with prod systems.

This reverts part of the register function to how it used to work.  To
be more specific, it calls the supervisor functions immediately in a
`parallel` call.

v0.13.1

Toggle v0.13.1's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
fix(thunk): remove unnecessary error log

v0.13.0

Toggle v0.13.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
refactor: enhanced thunk registry system (#44)

The current registry system for thunks works like this:

- User calls `const thunks = createThunks()`
- User creates **all** thunks `const go = thunks.create("go")`
- User registers thunks `store.run(thunks.bootup)`

However, there's a caveat with this implementation: all thunks must be
created before `store.run` is called.  Further, since thunks are created
at the module-level, if the module that exports those thunks isn't
loaded before `thunk.bootup` is called then those thunks are silently
ignored.

This change will make it so it doesn't matter when a thunk is created,
we will "lazy load" it.

We still require `store.run(thunks.bootup)` to be called -- because we
need access to the store and won't have it when creating a thunk.

We are also sending an error whenever a thunk is dispatched without it
being registered which should help ensure thunks get properly
registered.

We also changed the name of `thunks.bootup` to `thunks.register` to make
it more clear that this is a registry system.

v0.12.0

Toggle v0.12.0's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
fix: catch error and bubble up

v0.11.0

Toggle v0.11.0's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
fix(mdw): thunk loader needs `ctx.loader`

v0.10.0

Toggle v0.10.0's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
refactor: remove Result.data

BREAKING CHANGE: `ctx.json` no longer has a `.data` property

v0.9.0

Toggle v0.9.0's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
fix: export ApiMdwProps

v0.8.0

Toggle v0.8.0's commit message

Verified

This commit was signed with the committer’s verified signature.
neurosnap Eric Bower
docs: clearTimers