Skip to content

Binding issue with properties and functional widgets #563

@rorticus

Description

@rorticus

Bug

It looks like properties() calls are binding to an old version of the method and not the latest version. properties() should always return the latest copy of the properties.

Package Version: 6.0.1

Code

https://codesandbox.io/s/dojo-codesandbox-template-0wfis

In this example, click on "Increment value", then "Click me"

Expected behavior:

The value "11" would be printed to the console (the latest properties)

Actual behavior:

The value "1" is printed to the console (the original properties)

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