Skip to content

Commit

Permalink
revert: "fix: don't check for status ==="response" to derive state … (
Browse files Browse the repository at this point in the history
#412)

* revert: "fix: don't check for `status ==="response"` to derive state (#409)"

This reverts commit 9304567.

* chore: changesets
  • Loading branch information
dalechyn authored Jul 11, 2024
1 parent 13d8d35 commit 10e522d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-apes-train.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frog": patch
---

Reverted the changes introduced in 0.14.1.
1 change: 1 addition & 0 deletions src/utils/getFrameContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export function getFrameContext<
function deriveState(
derive?: (state: _state) => void | Promise<void>,
): _state | Promise<_state> {
if (status !== 'response') return previousState as _state
if (!derive) return previousState as _state

const clone = structuredClone(previousState)
Expand Down

0 comments on commit 10e522d

Please sign in to comment.