Skip to content

Commit 523f2c6

Browse files
committed
add to hash type
1 parent ac0b7cb commit 523f2c6

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-native-update",
3-
"version": "10.37.3",
3+
"version": "10.37.4",
44
"description": "react-native hot update",
55
"main": "src/index",
66
"scripts": {

src/provider.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const UpdateProvider = ({
162162
);
163163

164164
const checkUpdate = useCallback(
165-
async ({ extra }: { extra?: Record<string, any> } | undefined = {}) => {
165+
async ({ extra }: { extra?: Partial<{ toHash: string }> } = {}) => {
166166
const now = Date.now();
167167
if (lastChecking.current && now - lastChecking.current < 1000) {
168168
return;

0 commit comments

Comments
 (0)