{"action":"created","issue":{"url":"https://api.github.com/repos/omniscientjs/omniscient/issues/43","labels_url":"https://api.github.com/repos/omniscientjs/omniscient/issues/43/labels{/name}","comments_url":"https://api.github.com/repos/omniscientjs/omniscient/issues/43/comments","events_url":"https://api.github.com/repos/omniscientjs/omniscient/issues/43/events","html_url":"https://github.com/omniscientjs/omniscient/issues/43","id":56577286,"number":43,"title":"omniscient should unbox cursors before calling render if that's only thing that was passed.","user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-02-04T19:45:36Z","updated_at":"2015-02-04T23:36:56Z","closed_at":null,"body":"I find it confusing that if I do `App(cursor)` my App component needs to grab `props.cursor` instead of just receiving a cursor, while if I do `App({ x: xCursor, y: yCursor })` I can just get cursors as `x` & `y`. I think it would be a lot better if omniscient would unbox cursor if that's what was passed to a component."},"comment":{"url":"https://api.github.com/repos/omniscientjs/omniscient/issues/comments/72964166","html_url":"https://github.com/omniscientjs/omniscient/issues/43#issuecomment-72964166","issue_url":"https://api.github.com/repos/omniscientjs/omniscient/issues/43","id":72964166,"user":{"login":"Gozala","id":21236,"avatar_url":"https://avatars.githubusercontent.com/u/21236?v=3","gravatar_id":"","url":"https://api.github.com/users/Gozala","html_url":"https://github.com/Gozala","followers_url":"https://api.github.com/users/Gozala/followers","following_url":"https://api.github.com/users/Gozala/following{/other_user}","gists_url":"https://api.github.com/users/Gozala/gists{/gist_id}","starred_url":"https://api.github.com/users/Gozala/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gozala/subscriptions","organizations_url":"https://api.github.com/users/Gozala/orgs","repos_url":"https://api.github.com/users/Gozala/repos","events_url":"https://api.github.com/users/Gozala/events{/privacy}","received_events_url":"https://api.github.com/users/Gozala/received_events","type":"User","site_admin":false},"created_at":"2015-02-04T23:36:56Z","updated_at":"2015-02-04T23:36:56Z","body":"Ok I was not able to figure out what did you meant by:\r\n\r\n> Pass on a props with isJustCursor filtered out.\r\n\r\nThere for I went ahead with slightly different route that would not use `isJustCursor` at all, instead now it uses `props[component.cursor]` as a field where cursor is stored in cases where it's only thing passed to component. Presence of `this.props[component.cursor]` is also used as a signal to render method that only thing passed was a cursor, in which case it get's unboxed before it's passed to user defined `render`.\r\n\r\nThis way only thing that has changed for `omniscient` perspective is that `this.props.cursor` got renamed to `this.props[component.cursor]`. Please not that `component.cursor` is set to `\"{{private:cursor@omniscient}}\"` and the ugliness is intentional to avoid unboxing in case user did `Component({cursor: foo})`.\r\n\r\nI hope all this makes sense.\r\n\r\nP.S.: All tests pass now too."}}