{"action":"created","issue":{"url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/1605","repository_url":"https://api.github.com/repos/marmelab/admin-on-rest","labels_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/1605/labels{/name}","comments_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/1605/comments","events_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/1605/events","html_url":"https://github.com/marmelab/admin-on-rest/issues/1605","id":301989176,"number":1605,"title":"Rest-admin won't redirect to /login page when {(permissions) => {}} is passed as a child of <Admin /> instead of list of <Resource />","user":{"login":"qstyler","id":5556580,"avatar_url":"https://avatars3.githubusercontent.com/u/5556580?v=4","gravatar_id":"","url":"https://api.github.com/users/qstyler","html_url":"https://github.com/qstyler","followers_url":"https://api.github.com/users/qstyler/followers","following_url":"https://api.github.com/users/qstyler/following{/other_user}","gists_url":"https://api.github.com/users/qstyler/gists{/gist_id}","starred_url":"https://api.github.com/users/qstyler/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qstyler/subscriptions","organizations_url":"https://api.github.com/users/qstyler/orgs","repos_url":"https://api.github.com/users/qstyler/repos","events_url":"https://api.github.com/users/qstyler/events{/privacy}","received_events_url":"https://api.github.com/users/qstyler/received_events","type":"User","site_admin":false},"labels":[{"id":407389537,"url":"https://api.github.com/repos/marmelab/admin-on-rest/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2018-03-03T10:59:29Z","updated_at":"2018-03-09T12:59:01Z","closed_at":null,"author_association":"NONE","body":"I expect my react-admin app to show me the login page when I'm not logged in yet. And when I have a function as the <Admin /> only child.\r\n\r\nIn fact I stuck with the Loading page saying “The page is loading, just a moment please.”.\r\n\r\n![image](https://user-images.githubusercontent.com/5556580/36933526-7d7e4658-1eda-11e8-9187-38ae3d4fe371.png)\r\n\r\n\r\nI tried to reproduce it on a clean install taken from the Tutorial and got the same result.\r\n\r\n```JSX\r\n// in src/App.js\r\nimport React from 'react';\r\nimport { Admin, Resource } from 'react-admin';\r\nimport jsonServerProvider from 'ra-data-json-server';\r\nimport authProvider from './authProvider';\r\n\r\nimport { PostList } from './posts';\r\nimport Dashboard from './Dashboard';\r\n\r\nconst App = () => (\r\n    <Admin\r\n      dataProvider={jsonServerProvider('http://jsonplaceholder.typicode.com')}\r\n      dashboard={Dashboard}\r\n      authProvider={authProvider}\r\n    >{(auth)=>\r\n        <Resource name=\"posts\" list={PostList} />\r\n     }\r\n    </Admin>\r\n);\r\n\r\nexport default App;\r\n```\r\n\r\n\r\nAuth provider here is also a provider [taken from the tutorial](https://github.com/marmelab/admin-on-rest/blob/next/docs/Tutorial.md#adding-a-login-page).\r\n\r\n\r\n**Environment**\r\n\r\n* Admin-on-rest version: react-admin: ^2.0.0-beta2\r\n* React version: 16.2.0\r\n* Browser: Chrome 64.0.3282.186"},"comment":{"url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/comments/371805694","html_url":"https://github.com/marmelab/admin-on-rest/issues/1605#issuecomment-371805694","issue_url":"https://api.github.com/repos/marmelab/admin-on-rest/issues/1605","id":371805694,"user":{"login":"afilp","id":7850073,"avatar_url":"https://avatars3.githubusercontent.com/u/7850073?v=4","gravatar_id":"","url":"https://api.github.com/users/afilp","html_url":"https://github.com/afilp","followers_url":"https://api.github.com/users/afilp/followers","following_url":"https://api.github.com/users/afilp/following{/other_user}","gists_url":"https://api.github.com/users/afilp/gists{/gist_id}","starred_url":"https://api.github.com/users/afilp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afilp/subscriptions","organizations_url":"https://api.github.com/users/afilp/orgs","repos_url":"https://api.github.com/users/afilp/repos","events_url":"https://api.github.com/users/afilp/events{/privacy}","received_events_url":"https://api.github.com/users/afilp/received_events","type":"User","site_admin":false},"created_at":"2018-03-09T12:59:01Z","updated_at":"2018-03-09T12:59:01Z","author_association":"CONTRIBUTOR","body":"Not sure if this helps, but for some reason the app works on a \"non-clean\" Chrome, i.e. the one I am using every day without any \"Clear Browser Data\" on that Chrome for months (no need). I am afraid to do so, as I will not be able to work anymore with react-admin. in Incognito mode the app does not work, which shows that the \"default\" when using \"permissions\" (maybe) is to stay at \"Loading...\".\r\n\r\nWhat may be *cached* on my main Chrome that makes it work? This is strange."}}
{"actor":{"display_login":"afilp"}}