binding issue RRS feed

  • Question

  • User1034446946 posted


    I have a prop down to the child components which is a preference to the parent component.

    when I am using a collection i set a uuid in variable and put the in the binding


    const uuid = uuid()
    const binding = 'categories[${uuid}]'

    really like it, however the problem is it refreshes everytime state changes, which I know this is how it supposed to happen, but i have no idea how to hold a fixed random value in component that relies on state.

    Tuesday, September 10, 2019 10:25 PM


  • User1034446946 posted

    i think I have a couple of options.

    Icould hold the uuid in the url, but that would make the url messy.


    i think i could move the components back 1 tier, so i create the uuid and pass it to the form that first tier should never get rerended as it has no state to update

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Wednesday, September 11, 2019 2:02 PM