Releases: pmndrs/jotai
v1.3.4
Summary
jotai
- Fix a bug that prevented to recover from async atom errors
jotai/utils
- Add a new
loadable
util which allows to avoid using<Suspense>
jotai/babel
- Add new "experimental" babel plugin to auto-attach
.debugLabel
to atom configs- Feedback is very welcomed.
PRs
v1.3.3
Summary
jotai
Previously, writing atom returns always void
, but this was troublesome when a derived atom has a custom write
function which returns a promise. Now, it returns a promise if write
returns a promise.
PRs
v1.3.2
v1.3.1
Summary
This changed the exports config to match with nodejs standard. If you experience some issues with your bundlers feel free to open issues to report them.
jotai/core
- Some code refactoring was done, which also changed other
jotai/*
bundles accordingly.
jotai/query
- Support
enabled
option (Previously, it wasn't working properly) - Support infinite query page refresh
jotai/urql
- Support
pause
option - Support
reexecute
callback
PRs
- #648 refactor: rename store to scope container
- #650 refactor: new store.ts based on old vanilla.ts
- #652 Fix(useAtomsSnapshot): Only use values in snapshots
- #653 fix(query): improve initial data method
- #654 refactor(core): remove duplicated code
- #665 feat(query): enabled functionality
- #655 fix(urql): support pause option
- #670 feat(query): infinite query page refresh
- #657 ESM/CJS Exports addition
- #668 feat(urql): support reexecute in atomWithQuery
v1.3.0
Summary
jotai
We fixed atom scope feature. useAtom
now takes optional scope
in the second argument and atom.scope
is deprecated. As it falls back to the previous behavior, the core is not breaking. (However, other jotai/*
has breaking changes in atom scope handling.)
jotai/utils
- New experimental
useHydrateAtoms
hook to restore atom values in render. - Fixed performance related issues for
waitForAll
anduseAtomCallback
.
PRs
v1.2.2
Summary
v1.2.1 has an issue with TypeScript in jotai/utils
, which is fixed.
PRs
- #600 chore(parser): upgrade to the new JSX transform and removing unused react imports
- #599 chore(utils): refactor atomWithObservable
- #602 chore(imports): enforce a convention in module import order
- #603 chore(examples, tests): remove
React.FC
from the TSX file - #606 chore(imports): update the imports declarations of type annotations and declarations to
import type
- #605 fix(utils): patch symbol type in atomWithObservable
v1.2.1
Summary
v1.2.0 introduced jotai/rxjs
, but because atomWithObservable
can be implemented library-agnostic, it's moved to jotai/utils
. [BREAKING] jotai/rxjs
bundle is removed.
PRs
v1.2.0
Summary
jotai/query
- [BREAKING] Dropped
equalityFn
inatomWithQuery
andatomWithInfiniteQuery
- Added an optional parameter
getQueryClient
for custom query client. - Fixed the behavior with
initialData
jotai/rxjs
- New bundle to integrate with rxjs.
- This is an experimental feature, and we are looking for a contributor.
Misc
- Fixed various utils and integrations for better atom scope handling. This is primarily for third-party libraries.
PRs
v1.1.3
Summary
- Added "import" export entries for modern bundlers.
- Fixed
atomWithInfiniteQuery
injotai/query
. - Fixed
selectAtom
andsplitAtom
injotai/utils
.