Skip to content

Commit d3225fb

Browse files
authored
fix(shared): handle circular reference for deep clone (#166)
1 parent 19c2442 commit d3225fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/shared/src/general.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export function sortByKey(state: unknown[]) {
5353
* @copyright [rfdc](https://github.com/davidmarkclements/rfdc)
5454
* @description A really fast deep clone alternative
5555
*/
56-
export const deepClone = rfdc()
56+
export const deepClone = rfdc({ circles: true })
5757

5858
export function randomStr() {
5959
return Math.random().toString(36).slice(2)

0 commit comments

Comments
 (0)