初始化Graph实例报错,e.onTick is not a function
- Dominant language
- JavaScript
- Stars
- 147
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Description
- [x] I have searched the [issues](https://github.com/antvis/f6/issues) of this repository and believe that this is not a duplicate.
### Reproduction link
[](https://codesandbox.io/s/nervous-river-tqsg6?file=/src/App.js)
### Steps to reproduce
初始化的时候会报错,目前定位到[报错行数](https://github.com/antvis/F6/blob/bc6a1ae57a7137b1ecda5cbe2f1ae793ef4b3639/packages/core/src/graph/graph.ts#L2951),每帧都会调用,但是第一帧报错后,后续帧会停止调用,不影响出图,但是会有个报错。
| Environment | Info |
|---|---|
| f6 | 0.0.14 |
| System | - |
| Browser | - |
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the initialization error using the linked CodeSandbox, then inspect packages/core/src/graph/graph.ts around line 2951 where the reported failure occurs. Confirm the fix removes the first-frame e.onTick error while preserving subsequent frame calls and graph rendering.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- data-visualization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100