Skip to content

Commit

Permalink
fix(shared): handle circular reference for deep clone (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
webfansplz committed Jan 13, 2024
1 parent 19c2442 commit d3225fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/shared/src/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export function sortByKey(state: unknown[]) {
* @copyright [rfdc](https://github.com/davidmarkclements/rfdc)
* @description A really fast deep clone alternative
*/
export const deepClone = rfdc()
export const deepClone = rfdc({ circles: true })

export function randomStr() {
return Math.random().toString(36).slice(2)
Expand Down

0 comments on commit d3225fb

Please sign in to comment.