aws-amplify / aws-amplify/amplify-ui

FR (Authenticator): Ability to update formFIelds without remounting the Authenticator component

Open
#3,992 1 comment 0 reactions 0 assignees View on GitHub
Authenticator feature-request React
Dominant language
TypeScript
Stars
1.1k
Forks
347
Avg merge
18h 29m
Merged PRs (30d)
9

Description

### On which framework/platform would you like to see this feature implemented?

React

### Which UI component is this feature-request for?

Authenticator

### Please describe your feature-request in detail.

Authenticator currently does not support changes to `formFIelds` after `Authenticator` has already initialized. Specifically, `` holds the formFields state, and needs to be remounted for your new `formfields` to take effect.

Parent component:
```jsx

```

MyApp:
```jsx

```
If you change userid after initially displaying the sign in page, it will not change. Moving Authenticator.Provider into MyApp is an acceptable workaround for now.

### Please describe a solution you'd like.

_No response_

### We love contributors! Is this something you'd be interested in working on?

- [ ] 👋 I may be able to implement this feature request.
- [ ] ⚠️ This feature might incur a breaking change.

Contributor guide

Open the contributing guide

Research direction

Start with Authenticator.Provider and Authenticator, tracing how formFields are initialized and whether later prop changes are observed. Done means changing formFields, such as the sign-in username value or read-only state, takes effect without remounting either component.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.