Uploaded image for project: 'Fluid Infusion'
  1. Fluid Infusion
  2. FLUID-6158

Extract setModel and applyModelChanges functions from NexusWebSocketBoundComponent to general Infusion usage

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Data Binder
    • Labels:
      None

      Description

      It has been identified that the NexusWebSocketBoundComponent has some useful functionality that should be extracted into Infusion core.

      The relevant functions are at https://github.com/simonbates/nexus-client/blob/master/src/NexusWebSocketBoundComponent.js#L144-L193 - their moral purpose is to calculate the changes necessary to bring one model into consistency with another model.

      Signature and function name of the extracted functionality will be as follows:

      fluid.modelPairToChanges(value, oldValue, path) -> [Array of ChangeRequest]

      The return value can then be passed to fluid.fireChanges or otherwise used.

        Attachments

          Activity

            People

            • Assignee:
              simon Simon Bates
              Reporter:
              aharnum Alan Harnum
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: