Skip to content

Commit

Permalink
fix(useMqtt): vite Buffer error
Browse files Browse the repository at this point in the history
  • Loading branch information
wangxingkang committed May 8, 2023
1 parent 543648c commit 298283e
Show file tree
Hide file tree
Showing 2 changed files with 4,540 additions and 4,245 deletions.
2 changes: 1 addition & 1 deletion hooks/useMqtt/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/* eslint-disable max-params */
/* eslint-disable prefer-promise-reject-errors */
import { useRef, useState, useEffect } from 'react';
import mqtt from 'mqtt';
import * as mqtt from 'mqtt/dist/mqtt';
import { useUnmount } from '@pansy/use-unmount';
import { useLatest } from '@pansy/use-latest';
import { useBoolean } from '@pansy/use-boolean';
Expand Down
Loading

0 comments on commit 298283e

Please sign in to comment.