Skip to content

Allow options to be updated #25

@davecarlson

Description

@davecarlson

Is your feature request related to a problem? Please describe.

Currently, you can only to pass options.headers on first render.
This makes it impossible to 'update' things such as the token, if required.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
setOptions() to update the stored options:
eg:

setOptions({
...options,
headers: {
  Authorization: 'Bearer anUpdatedToken`
}

Describe alternatives you've considered
Right now, I have to wrap my component in another component that async gets the bearer token.
Screenshot 2024-04-16 at 15 39 39

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions