Open
Conversation
be765cd to
220888c
Compare
220888c to
45dc8f7
Compare
45dc8f7 to
50dbdf1
Compare
50dbdf1 to
6065abd
Compare
6065abd to
74b66e0
Compare
74b66e0 to
091e584
Compare
091e584 to
a7b7c2d
Compare
a7b7c2d to
c38a098
Compare
c38a098 to
4582d67
Compare
4582d67 to
537dbca
Compare
537dbca to
9b74b1b
Compare
9b74b1b to
196579f
Compare
196579f to
a78c60f
Compare
a78c60f to
f12bfec
Compare
f12bfec to
47021d3
Compare
47021d3 to
2d7d393
Compare
2d7d393 to
8269ea5
Compare
8269ea5 to
f724b48
Compare
ed940d8 to
f724b48
Compare
f724b48 to
fe8bcc1
Compare
fe8bcc1 to
29f13cf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.2.0→0.7.7Release Notes
facebookexperimental/Recoil (recoil)
v0.7.7Compare Source
v0.7.6Compare Source
RecoilEnv.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED = falsein code to disable the checking and logging.process.env.RECOIL_DUPLICATE_ATOM_KEY_CHECKING_ENABLED=falsein NodeJS environments such as NextJsv0.7.5Compare Source
v0.7.4Compare Source
v0.7.3Compare Source
parentStoreID_UNSTABLEto atom effects which is the ID of the parent store it cloned from, such as the host<RecoilRoot>store foruseRecoilCallback()snapshots. (#1744)v0.7.2Compare Source
v0.7.1Compare Source
Typing
childrenprop to<RecoilRoot>anduseRecoilBridgeAcrossReactRoots_UNSTABLE()for TypeScript for@types/reactwith React 18 (#1718, #1717, #1726, #1731)toJSON(). (#1709, #1703)Fixes
<RecoilRoot>'s. (#1712)v0.7.0Compare Source
New Features
defaultvalue is now optional foratom()andatomFamily(). If not provided the atom will initialize to a pending state. (#1639)getStoreID()method toSnapshot(#1612)RecoilLoadable.loading()factory for making an asyncLoadablewhich never resolves. (#1641)Breaking Changes
get()and Atom'sdefaultcan now accept aLoadableto put the node in that state. If you wish to store aLoadable,Promise, orRecoilValuedirectly you can wrap it withselector.value()oratom.value(). (#1640)useRecoilCallback()now provides a snapshot for the latest state when the callback is called instead of the latest rendered state, which had issues (#1610, #1604)Improvements / Optimizations
Fixes
setSelf()fromonSet()handlers. (#1589, #1582)Windowinterface. (#1571)v0.6.1Compare Source
Fix postInstall script
v0.6.0Compare Source
React 18
<StrictMode>(#1473, #1444, #1509).useTransition()using hooks with_TRANSITION_SUPPORT_UNSTABLEsuffix. (#1572, #1560)New Features
refresh()to theuseRecoilCallback()interface for refreshing selector caches. (#1413)getCallback()can now mutate, refresh, and transact Recoil state, in addition to reading it, for parity withuseRecoilCallback(). (#1498)<RecoilRoot>andSnapshotstores accessible viauseRecoilStoreID()hook (#1417) orstoreIDparameter for atom effects (#1414).RecoilLoadable.all()andRecoilLoadable.of()now accept either literal values, async Promises, or Loadables. (#1455, #1442).isRetained()method for Snapshots and check if snapshot is already released when using.retain()(#1546)Other Fixes and Optimizations
useRecoilTransaction_UNSTABLE()(#1466, #1569)onSet()handlers in atom effects when atoms are cleaned up. (#1509)onSet()when atoms are initialized with<RecoilRoot initializeState={...} >(#1519, #1511)<RecoilRoot>will only callinitializeState()once during the initial render. (#1372)useGetRecoilValueInfo_UNSTABLE()andSnapshot#getInfo_UNSTABLE()results (#1549)Breaking Changes
effects_UNSTABLEto justeffects, as the interface is mostly stabilizing. (#1520)<RecoilRoot initializeState={...} >. (#1509)useGetRecoilValueInfo_UNSTABLE()andSnapshot#getInfo_UNSTABLE()always report the nodetype. (#1547)v0.5.2Compare Source
TypeScript fixes
v0.5.1Compare Source
TypeScript fixes
v0.5.0Compare Source
useRecoilRefresher_UNSTABLE()hook which forces a selector to re-run it'sget(), and is a no-op for an atom. (#972, #1294, #1302)getLoadable(),getPromise(), andgetInfo_UNSTABLE()to Atom Effects interface for reading other atoms. (#1205, #1210)isResetparameter toonSet()callback to know if the atom is being reset or not. (#1358, #1345)Loadableimprovements:RecoilLoadableinterface with factories and type checking for Loadables. (#1263, #1264, #1312)v0.4.1Compare Source
v0.4.0Compare Source
New Features
cachePolicy_UNSTABLEoption for selectors and selector families. This option allows you to control the behavior of how the selector evicts entries from its internal cache.useRecoilTransaction_UNSTABLE()hook for transactions with multiple atoms (#1085)Fixes and Optimizations
selectorFamily(),getCallback(),useGetRecoilValueInfo(), andSnapshot#getNodes()(#1060, #1116, #1123)Snapshot(#1135, #1107)v0.3.1Compare Source
v0.3.0: 0.3Compare Source
Breaking Changes
For supporting garbage collection in the future there is a slight breaking change that
Snapshot's will only be valid for the duration of the callback or render. A newretain()API can be used to persist them longer. This is not enforced yet, but Recoil will now provide a warning in dev-mode if aSnapshotis used past its lifetime. (#1006)New Features / Improvements
overrideprop to<RecoilRoot>(#973)getCallback()to selector evaluation interface (#989)Loadables (#966, #1022)Performance Optimizations
Bug Fixes
<ErrorBoundary>'s (#998, #1017)onSet()should not be called when triggered fromsetSelf()initializing with a Promise or from the sameonSet()handler. (#974, #979, #953, #986)Configuration
📅 Schedule: (in timezone Asia/Tokyo)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.