clauderic / clauderic/react-sortable-hoc

Uncaught TypeError: cannot call a class as a function

Open
#847 1 comment 3 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
10.9k
Forks
959
PR merge metrics
No merged PRs in 30d

Description

When I change code, and the app re-renders, it always crashes with this error message:
`Uncaught TypeError: cannot call a class as a function`
I'm not sure why it's happening.
Basically, this is what I have...

const SortableCont = SortableContainer(({ children }: any) =>

{children}
);
const SortableItem = SortableElement((props: any) => );

return (
....

{actionButtonList.map((value: any, index: number) =>

)}

)}

![Screen Shot 2022-07-12 at 3 10 11 AM](https://user-images.githubusercontent.com/6422868/178430510-0965ccc6-3e50-4bed-8bc9-ae85b296a5fb.png)

Contributor guide

No contributing guide indexed for this repository

Research direction

The report includes only an application snippet using SortableContainer, SortableElement, and React rendering; no repository file, test, or entry point is named. Start by reproducing the rerender crash with the shown usage and inspect the relevant React integration. Done would require a confirmed cause and a repository-scoped resolution, but the issue does not define one.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.