Error: Expected reorderId to be a string. Instead got undefined
See original GitHub issueI’m running into this issue and didn’t find any information about it in the documentation.
I tried a lot of different configurations with the same result. When I add reorderId='_id'
to my list of props, I lose the warning and a div is created, but nothing is inside.
Reorder is added to my component this way: import Reorder from 'react-reorder'
And in the render:
<Reorder
itemKey='_id'
lock='horizontal'
holdTime={0}
list={this.props.user.mylist}
template={Listing}
listClass='my-list'
itemClass='list-item'
callback={this.callback}
listClass='my-list'
itemClass='list-item'
itemClicked={this.itemClicked}
selected={this.state.selected}
selectedKey='_id'
disableReorder={false}
/>
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12 (7 by maintainers)
Top Results From Across the Web
React native expected a string or class function but got ...
You can test this theory by console logging the component SignIn ; you will find it prints undefined . The reason is you...
Read more >ksort - Manual - PHP
Sorts array in place by keys in ascending order. ... Prior to PHP 8.0.0, their relative order in the sorted array was undefined....
Read more >Object.prototype.toString() - JavaScript - MDN Web Docs
The toString() method returns a string representing the object. This method is meant to be overridden by derived objects for custom type ...
Read more >How to Fix: Typeerror: expected string or bytes-like object
This tutorial explains how to fix the following error in Python: How to Fix: Typeerror: expected string or bytes-like object.
Read more >Cannot read properties of undefined (reading 'length') - TrackJS
length is commonly used on string and array , but a custom object could also have this property. This is a blocking error,...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Just sorted that: https://github.com/JakeSidSmith/react-reorder/blob/master/README.md
Great minds. 😛
The config / markup has changed a lot for v3. Are you following the new readme?
https://github.com/JakeSidSmith/react-reorder/tree/rework#configuration