diff --git a/classes/react_src.AuthGate.html b/classes/react_src.AuthGate.html index 2e3797e..d9863eb 100644 --- a/classes/react_src.AuthGate.html +++ b/classes/react_src.AuthGate.html @@ -1,4 +1,4 @@ -
purposely going through antipattern because we can't cancel promises for now we still cancel subscriptions etc., but we can't guarantee when storage promises will resolve
-Readonly
propsStatic
Optional
contextIf set, this.context
will be set at runtime to the current value of the given Context.
Readonly
propsStatic
Optional
contextIf set, this.context
will be set at runtime to the current value of the given Context.
Usage:
type MyContext = number
const Ctx = React.createContext<MyContext>(0)
class Foo extends React.Component {
static contextType = Ctx
context!: React.ContextType<typeof Ctx>
render () {
return <>My context's value: {this.context}</>;
}
}
Static
defaultOptional
UNSAFE_Static
defaultOptional
UNSAFE_Called immediately before mounting occurs, and before Component#render
.
Avoid introducing any side-effects or subscriptions in this method.
This method will not stop working in React 17.
Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps @@ -75,9 +75,9 @@
Optional
componentOptional
componentOptional
componentOptional
componentCalled immediately after updating occurs. Not called for the initial render.
The snapshot is only present if getSnapshotBeforeUpdate is present and returns non-null.
Optional
snapshot: anyOptional
componentOptional
componentOptional
componentCalled immediately before rendering when new props or state is received. Not called for the initial render.
Note: You cannot call Component#setState
here.
Note: the presence of getSnapshotBeforeUpdate or getDerivedStateFromProps prevents this from being invoked.
@@ -108,15 +108,15 @@Optional
getOptional
getRuns before React applies the result of render
to the document, and
returns an object to be given to componentDidUpdate. Useful for saving
things such as scroll position before render
causes changes to it.
Note: the presence of getSnapshotBeforeUpdate prevents any of the deprecated lifecycle events from running.
-Optional
callback: (() => void)Optional
shouldCalled to determine whether the change in props and state should trigger a re-render.
+Optional
callback: (() => void)Optional
shouldCalled to determine whether the change in props and state should trigger a re-render.
Component
always returns true.
PureComponent
implements a shallow comparison on props and state and returns true if any
props or states have changed.
If false is returned, Component#render
, componentWillUpdate
and componentDidUpdate
will not be called.
Private
sdkPrivate
storePrivate
sdkPrivate
storePrivate
_externalsPrivate
Readonly
_prefixStatic
defaultPrivate
_keysPrivate
_prefixPrivate
_externalsPrivate
Readonly
_prefixStatic
defaultPrivate
_keysPrivate
_prefixPrivate
_cachePrivate
_clientPrivate
_externalsPrivate
_platformStatic
EventStatic
serverStatic
versionOptional
query: anyOptional
options: SendOptionsOptional
query: anyOptional
options: SendOptionsOptional
body: anyOptional
query: anyOptional
options: SendOptionsOptional
body: anyOptional
query: anyOptional
options: SendOptionsOptional
body: anyOptional
query: anyOptional
options: SendOptionsStatic
handlePrivate
_cachePrivate
_clientPrivate
_externalsPrivate
_platformStatic
EventStatic
serverStatic
versionOptional
query: anyOptional
options: SendOptionsOptional
query: anyOptional
options: SendOptionsOptional
body: anyOptional
query: anyOptional
options: SendOptionsOptional
body: anyOptional
query: anyOptional
options: SendOptionsOptional
body: anyOptional
query: anyOptional
options: SendOptionsStatic
handlePrivate
subscriptionsStatic
Readonly
captureStatic
captureSets or gets the default captureRejection value for all emitters.
+Private
subscriptionsStatic
Readonly
captureStatic
captureSets or gets the default captureRejection value for all emitters.
Static
defaultStatic
Readonly
errorThis symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
const emitter = new EventEmitter();
emitter.once('log', () => console.log('log once'));
// Returns a new Array with a function `onceWrapper` which has a property
// `listener` which contains the original listener bound above
const listeners = emitter.rawListeners('log');
const logFnWrapper = listeners[0];
// Logs "log once" to the console and does not unbind the `once` event
logFnWrapper.listener();
// Logs "log once" to the console and removes the listener
logFnWrapper();
emitter.on('log', () => console.log('log persistently'));
// Will return a new Array with a single function bound by `.on()` above
const newListeners = emitter.rawListeners('log');
// Logs "log persistently" twice
newListeners[0]();
emitter.emit('log');
v9.4.0
-Removes all listeners, or those of the specified eventName
.
It is bad practice to remove listeners added elsewhere in the code,
particularly when the EventEmitter
instance was created by some other
component or module (e.g. sockets or file streams).
Returns a reference to the EventEmitter
, so that calls can be chained.
Rest
...args: any[]v0.1.26
-By default EventEmitter
s will print a warning if more than 10
listeners are
added for a particular event. This is a useful default that helps finding
memory leaks. The emitter.setMaxListeners()
method allows the limit to be
modified for this specific EventEmitter
instance. The value can be set toInfinity
(or 0
) to indicate an unlimited number of listeners.
Private
statusPrivate
statusOptional
ensure?: booleanOptional
ensure?: booleanOptional
ensureOptional
ensureOptional
originalOptional
requestOptional
responseOptional
stackOptional
originalOptional
requestOptional
responseOptional
stackOptional
access_Optional
code_Optional
endpoint_Optional
expire_Optional
expires_Optional
owner_Optional
refresh_Optional
refresh_Optional
refresh_Optional
scopeOptional
token_Optional
access_Optional
code_Optional
endpoint_Optional
expire_Optional
expires_Optional
owner_Optional
refresh_Optional
refresh_Optional
refresh_Optional
scopeOptional
token_Optional
bodyOptional
cacheA string indicating how the request will interact with the browser's cache to set request's cache.
+Optional
bodyOptional
cacheA string indicating how the request will interact with the browser's cache to set request's cache.
Optional
credentialsA string indicating whether credentials will be sent with the request always, never, or only when sent to a same-origin URL. Sets request's credentials.
-Optional
headersOptional
integrityA cryptographic hash of the resource to be fetched by request. Sets request's integrity.
+Optional
headersOptional
integrityA cryptographic hash of the resource to be fetched by request. Sets request's integrity.
Optional
keepaliveA boolean to set request's keepalive.
Optional
methodA string to set request's method.
Optional
modeA string to indicate whether the request will use CORS, or will be restricted to same-origin URLs. Sets request's mode.
-Optional
queryOptional
redirectA string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
+Optional
queryOptional
redirectA string indicating whether request follows redirects, results in an error upon encountering a redirect, or returns the redirect (in an opaque fashion). Sets request's redirect.
Optional
referrerA string whose value is a same-origin URL, "about:client", or the empty string, to set request's referrer.
Optional
referrerA referrer policy to set request's referrerPolicy.
Optional
signalAn AbortSignal to set request's signal.
-Optional
urlOptional
windowCan only be null. Used to disassociate request from any Window.
+Optional
urlOptional
windowCan only be null. Used to disassociate request from any Window.
Optional
addOptional
addOptional
HeadersOptional
init: HeadersInitOptional
RequestOptional
init: RequestInitOptional
ResponseOptional
fetchOptional
init: RequestInitOptional
localOptional
HeadersOptional
init: HeadersInitOptional
RequestOptional
init: RequestInitOptional
ResponseOptional
fetchOptional
init: RequestInitOptional
localOptional
access_Optional
access_Optional
codeOptional
code_Optional
discovery_Optional
endpoint_Optional
extensionOptional
jwtOptional
passwordOptional
redirect_Optional
refresh_Optional
token_Optional
usernameOptional
access_Optional
access_Optional
codeOptional
code_Optional
discovery_Optional
endpoint_Optional
extensionOptional
jwtOptional
passwordOptional
redirect_Optional
refresh_Optional
token_Optional
usernameOptional
brandOptional
displayOptional
implicitOptional
localeOptional
loginOptional
promptOptional
redirectOptional
responseOptional
stateOptional
uiOptional
uiOptional
usePKCEOptional
brandOptional
displayOptional
implicitOptional
localeOptional
loginOptional
promptOptional
redirectOptional
responseOptional
stateOptional
uiOptional
uiOptional
usePKCEOptional
heightOptional
originOptional
propertyOptional
targetOptional
widthOptional
heightOptional
originOptional
propertyOptional
targetOptional
widthOptional
HeadersOptional
init: HeadersInitOptional
RequestOptional
init: RequestInitOptional
ResponseOptional
additionalOptional
appOptional
appOptional
authOptional
authorizeOptional
brandOptional
cacheOptional
clearOptional
clientOptional
clientOptional
defaultOptional
discoveryOptional
discoveryOptional
discoveryOptional
discoveryOptional
enableOptional
fetchOptional
init: RequestInitOptional
handleOptional
localOptional
redirectOptional
refreshOptional
refreshOptional
revokeOptional
serverOptional
tokenOptional
urlOptional
HeadersOptional
init: HeadersInitOptional
RequestOptional
init: RequestInitOptional
ResponseOptional
additionalOptional
appOptional
appOptional
authOptional
authorizeOptional
brandOptional
cacheOptional
clearOptional
clientOptional
clientOptional
defaultOptional
discoveryOptional
discoveryOptional
discoveryOptional
discoveryOptional
enableOptional
fetchOptional
init: RequestInitOptional
handleOptional
localOptional
redirectOptional
refreshOptional
refreshOptional
revokeOptional
serverOptional
tokenOptional
urlOptional
bodyOptional
handleOptional
headersOptional
methodOptional
queryOptional
retryOptional
skipOptional
skipOptional
urlOptional
userOptional
bodyOptional
handleOptional
headersOptional
methodOptional
queryOptional
retryOptional
skipOptional
skipOptional
urlOptional
user
See
https://react.dev/reference/react/Component#context