Comments (3)
One of the reasons why this error / warning is being generated is due to the mapping over the Immutable collection. I tried isolating the issue on the minimap and this is what I've found - http://stackoverflow.com/questions/31195321/immutable-js-mapping-over-keys-in-safari.
from react-surveyman.
Hmm? The React warning in your SO post makes sense.
Any use of a keyed object should be wrapped in React.addons.createFragment(object) before being passed as a child.
var items = Immutable.fromJS([
{id: 1, val: "foo"},
{id: 2, val: "bar"},
{id: 3, val: "moo"},
{id: 4, val: "baz"}
]);
var tree = items.map(function(item, i) {
// This is a keyed object. https://facebook.github.io/react/docs/create-fragment.html
return <p key={i}>{item.get('val')}</p>
});
// Tree is composed of keyed objects.
return (
// You are making tree a child of div. Tree is composed of keyed objects. Therefore, you are passing
// a keyed object as a child of this div without wrapping it in createFragment.
<div className="tree-view">
{tree}
</div>
)
from react-surveyman.
@jvilk: Right.. but the mapping over Immutable sequences should only pick up the elements and not the object properties. Weirdly, I'm unable to replicate this in jsbin.. so some issue in the application only. Somehow, this is working fine in Chrome / Firefox.
from react-surveyman.
Related Issues (20)
- Add transitions HOT 2
- Fix id generation HOT 3
- Ability to duplicate blocks and questions
- Validate JSON Schema
- Ability to Save / Load surveys HOT 4
- Allow items to be positioned arbitrarily when being dropped HOT 6
- Add support for Subblocks HOT 3
- testing slack integration
- randomization button? HOT 5
- Clicking on x in the select component gives a NaN
- Add linting for ES6
- Move to ES6 classes HOT 2
- Apply fixed positioning to the Toolbox
- Add properties to the Question Schema HOT 5
- Broken package HOT 7
- Survey Incremental Validation HOT 13
- License type HOT 3
- s/ordering/ordered
- Several module not found errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-surveyman.