Releases: magicbell/magicbell-js
@magicbell/[email protected]
Patch Changes
- Updated dependencies [
fad4d68
]:- @magicbell/[email protected]
@magicbell/[email protected]
Patch Changes
- Updated dependencies [
93d3b08
]:- @magicbell/[email protected]
[email protected]
[email protected]
[email protected]
Minor Changes
-
#482
a826a43
Thanks @smeijer! - We now dedupe identical requests that are made within the same second. -
#487
e3cd22e
Thanks @smeijer! - Network requests are now deduped. You can control this behavior using the
cacheTTL
setting. Set it to0
to disable. The TTL defaults to one second.
Meaning any identical request within that second shares the same Promise and
thus outcome.import { UserClient } from 'magicbell/user-client'; const magicbell = new UserClient({ apiKey: 'your-api-key', userEmail: '[email protected]', cacheTTL: 1_000, });
@magicbell/[email protected]
Patch Changes
- Updated dependencies [
dd46ddf
]:
@magicbell/[email protected]
Patch Changes
- Updated dependencies [
60189d6
]:
@magicbell/[email protected]
Minor Changes
-
#487
e3cd22e
Thanks @smeijer! - Network requests are now deduped. You can control this behavior using the
network.cacheTTL
setting. Setting it to0
disables caching entirely. The TTL
defaults to one second. Meaning any identical request within that second shares
the same Promise and thus outcome.import { MagicBellProvider } from '@magicbell/react-headless'; function Component() { return ( <MagicBellProvider apiKey="your-api-key" userEmail="[email protected]" network={{ cacheTTL: 1_000 }}> <App /> </MagicBellProvider> ); }
-
#487
e3cd22e
Thanks @smeijer! - We now expose the property to control the retries of failed network requests.
network.maxRetries
defaults to3
. Setting it to0
disables retries entirely.import { MagicBellProvider } from '@magicbell/react-headless'; function Component() { return ( <MagicBellProvider apiKey="your-api-key" userEmail="[email protected]" network={{ maxRetries: 5 }}> <App /> </MagicBellProvider> ); }
Patch Changes
@magicbell/[email protected]
Patch Changes
- Updated dependencies []:
- @magicbell/[email protected]
@magicbell/[email protected]
Patch Changes
- Updated dependencies []:
- @magicbell/[email protected]