Skip to content

API call enchancement possibility #282

@Caua-ferraz

Description

@Caua-ferraz

API calls for organization name updates are triggered on every onBlur event.
This can lead to a excessive API calls, especially if the user is typing quickly or tabbing through fields.
These calls can be optimized using a debounce mechanism to reduce unnecessary server requests and improve performance.

Possible solution
Implement a debounced function using lodash/debounce.
Replace the onBlur event handler with an onChange handler.
Call the debounced function in the onChange handler.
Set an delay (e.g., 500ms) to balance efficiency.

As far i tested it it worked properly, and increased the performance

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