Skip to content

Commit 84d9e92

Browse files
author
zhanbo
committed
feat: 兼容 ts错误
1 parent 013f541 commit 84d9e92

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/x-flow/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@xrenders/xflow",
3-
"version": "1.0.0-beta.5",
3+
"version": "1.0.0-beta.6",
44
"description": "一款功能强大、易用灵活的流程编辑器框架,帮助你轻松构建复杂的工作流和流程产品",
55
"keywords": [
66
"xflow"

packages/x-flow/src/utils/hooks.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useReducer, useRef, useEffect, useState } from 'react';
22
import { message } from 'antd';
33

44
export function usePrevious(value: any) {
5-
const ref = useRef();
5+
const ref = useRef(null);
66
useEffect(() => {
77
ref.current = value;
88
}, [value]);

0 commit comments

Comments
 (0)