Skip to content

clear the selection after setState #6

Closed
@alessandronocera89

Description

@alessandronocera89

Hi, just a simple question:
I've developed a component that allow my app to POST data retrieved by this dropdown selection.
One simple "save button" allow me to call my api and store the data then the setState is invoked to re-render the page (to show the new things) but inside the dropdown selection still remains the previous one value.
There is a way to "remove" this value from the dropdown view after the save?
Screenshot 2021-04-22 at 17 58 28
I want to be able to see the dropdown "cleared" after setState, without do an hard page refresh. It's possible?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions