Async State Management without the Management
APACHE-2.0 License
Bot releases are visible (Hide)
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
#3129 2503402
Thanks @ntucker! - Allow ctrl.set() value to be a function
This prevents race conditions.
const id = '2';
ctrl.set(Article, { id }, article => ({ id, votes: article.votes + 1 }));
Note: the response must include values sufficient to compute Entity.pk()
#3127 c18fbf7
Thanks @ntucker! - React Native calls fetches in InteractionManager.runAfterInteractions callback
This reduces the chance of frame drops.
Updated dependencies [2503402
, c18fbf7
, c18fbf7
]:
Published by github-actions[bot] 4 months ago
#3129 2503402
Thanks @ntucker! - Allow ctrl.set() value to be a function
This prevents race conditions.
const id = '2';
ctrl.set(Article, { id }, article => ({ id, votes: article.votes + 1 }));
Note: the response must include values sufficient to compute Entity.pk()
#3127 c18fbf7
Thanks @ntucker! - Add NetworkManager.idleCallback overridable method
This allows platform specific implementations by overriding the method.
For instance, on web:
import { NetworkManager } from '@data-client/core';
export default class WebNetworkManager extends NetworkManager {
static {
if (typeof requestIdleCallback === 'function') {
WebNetworkManager.prototype.idleCallback = requestIdleCallback;
}
}
}
Published by github-actions[bot] 4 months ago
Updated dependencies [720ff0c
]:
Published by github-actions[bot] 4 months ago
720ff0c
]:
Published by github-actions[bot] 4 months ago
#3123 c38714d
Thanks @ntucker! - Fix React Native use correct native specific modules
Fully realized path names (including .js at end of import)
was breaking platform specific extensions. To workaround this issue, we
simply create a custom react-native build that remaps any
imports with full extension written ("file.native.js")
Published by github-actions[bot] 4 months ago
720ff0c
]:
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
#3115 34f12c4
Thanks @ntucker! - Add useLoading(), useDebounce(), useCancelling()
These are taken from the hooks package.
47bf5af
Thanks @ntucker! - Fix React Native should not render anything for dev button
Published by github-actions[bot] 4 months ago
#3115 34f12c4
Thanks @ntucker! - This repository has been deprecated and is no longer actively maintained.
All hooks moved to @data-client/react
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
96b683b
Thanks @ntucker! - Remove need for dispatch in StoreContext as it is never used
This should have no affect unless you're working with internals of Data Client
4d8a8a5
Thanks @ntucker! - Fix SSR hydration when removing devtools manager
#3112 afe0640
Thanks @ntucker! - enhance: Use custom SSRProvider for SSR rather than ExternalDataProvider
Updated dependencies [327d666
]:
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
#3105 cf770de
Thanks @ntucker! - Add controller.set()
ctrl.set(
Todo,
{ id: '5' },
{ id: '5', title: 'tell me friends how great Data Client is' },
);
BREAKING CHANGE:
cf770de
]:
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago
Published by github-actions[bot] 4 months ago