final-form / final-form/react-final-form

change is not a function

Open
#1,026 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
7.4k
Forks
497
PR merge metrics
No merged PRs in 30d

Description

### Are you submitting a **bug report** or a **feature request**?

**bug report**

### What is the current behavior?

We received a bugsnag alert about state.change not being a function:
TypeError P.change is not a function

Meanwhile, we at least introduced source maps, so the code mentioned points me to:
Screenshot 2023-03-10 at 15 23 32

### What is the expected behavior?

change should be a function and should only be called if it's a function.

### Sandbox Link

Sadly, I again have no idea how our end users produce the exception.

### What's your environment?

```
"final-form": "4.20.7",
"react": "^17.0.2",
"react-final-form": "^6.5.9",
```

Current chrome, node 18

### Other information

Sorry for again not being able to provide more info - I reported a similar, but different issue in final-form.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the source-map location shown in the issue and the interaction between final-form 4.20.7 and react-final-form 6.5.9. Try to reproduce the Bugsnag TypeError in the listed React 17 and Node 18 environment; done means identifying a reproducible path and confirming that change is only invoked when callable.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.