Sitelet https://github.com/coderenaissance/knockout.viewmodel/issues/57
Skip to content

Have options for better customizing toModel / fromModel #57

Description

@josche-duplicate

I have a scenario where we have a complex data model for managing data / state during a workflow, the issue is a complex object property is null initially but is checked during the workflow, this is done for simplification. The problem is that during the initial process, these properties are converted to observable nulls during one execution path, and an object with nested child observables when executed from a different logic path. This breaks the functionality of updateFromModel. I first tackled this issue by attempting to clean out knockout bindings but ran into many other issues. It would simpler and cleaner to have the ability to ignore properties, and/or some means to not convert properties that are null.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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