Skip to content

Commit

Permalink
Merge branch 'develop' into MAT-7204a
Browse files Browse the repository at this point in the history
  • Loading branch information
ethankaplan authored Jun 28, 2024
2 parents 6a58715 + fed3d56 commit fd304b8
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Store/measureStore.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from "react";
import { BehaviorSubject } from "rxjs";
import { Measure } from "@madie/madie-models/dist/Measure";
import { TestCase } from "@madie/madie-models";

// immutable object that retains state, tracks updates
const subject = new BehaviorSubject<Measure | null>(null);
Expand All @@ -18,6 +19,10 @@ export const measureStore = {
state = Object.assign({}, measure);
subject.next(state);
},
updateTestCases: (testCases: TestCase[] | null) => {
state = { ...state, testCases };
subject.next(state);
},
initialState,
state,
};

0 comments on commit fd304b8

Please sign in to comment.