useFiles
useFiles(
options):UseFilesResult
Defined in: libs/ccs-files-user-client/src/react/hooks.ts:49
The FilesClient for the lifetime of the component.
- Options (
apiUrl,tenantId,applicationId,getAccessToken): built at once;getAccessTokenis read through a ref, so it needs no stable identity; only a change ofapiUrl,tenantIdorapplicationIdbuilds a new client. { tokens, overrides? }: built withFilesClient.fromTokenRoute(the route’sapi_url,tenant_id,application_id);clientisnulluntil then.{ client }: your own client, used as is and never disposed by the hook.
A client the hook built is disposed when it is replaced or the component unmounts.