Skip to content

Conversation

@Jon-edge
Copy link
Collaborator

@Jon-edge Jon-edge commented Nov 14, 2024

CHANGELOG

Does this branch warrant an entry to the CHANGELOG?

  • Yes
  • No

Dependencies

none

Requirements

If you have made any visual changes to the GUI. Make sure you have:

  • Tested on iOS device
  • Tested on Android device
  • Tested on small-screen device (iPod Touch)
  • Tested on large-screen device (tablet)

@Jon-edge Jon-edge force-pushed the jon/fix/light-acc-warning branch 2 times, most recently from 56a7510 to 58b819f Compare November 14, 2024 01:15
const lastUsed = React.useRef<number>(1)
const account = useSelector(state => state.core.account)
const currentUsername = useWatch(account, 'username')
const [initUsername] = React.useState(account.username)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since you're not changing the state, use useRef

@Jon-edge Jon-edge force-pushed the jon/fix/light-acc-warning branch from 58b819f to b2b1c6a Compare November 18, 2024 21:57
@Jon-edge Jon-edge force-pushed the jon/fix/light-acc-warning branch from b2b1c6a to d3d4778 Compare November 19, 2024 01:20
@Jon-edge Jon-edge merged commit 6cca4ec into develop Nov 19, 2024
2 checks passed
@Jon-edge Jon-edge deleted the jon/fix/light-acc-warning branch November 19, 2024 01:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants