{"action":"created","issue":{"url":"https://api.github.com/repos/transloadit/uppy/issues/996","repository_url":"https://api.github.com/repos/transloadit/uppy","labels_url":"https://api.github.com/repos/transloadit/uppy/issues/996/labels{/name}","comments_url":"https://api.github.com/repos/transloadit/uppy/issues/996/comments","events_url":"https://api.github.com/repos/transloadit/uppy/issues/996/events","html_url":"https://github.com/transloadit/uppy/issues/996","id":350064758,"node_id":"MDU6SXNzdWUzNTAwNjQ3NTg=","number":996,"title":" Cannot read property 'slice' of undefined at Uppy.removePlugin at Dashboard.componentWillUnmount ","user":{"login":"artemisIrelia","id":24750542,"node_id":"MDQ6VXNlcjI0NzUwNTQy","avatar_url":"https://avatars2.githubusercontent.com/u/24750542?v=4","gravatar_id":"","url":"https://api.github.com/users/artemisIrelia","html_url":"https://github.com/artemisIrelia","followers_url":"https://api.github.com/users/artemisIrelia/followers","following_url":"https://api.github.com/users/artemisIrelia/following{/other_user}","gists_url":"https://api.github.com/users/artemisIrelia/gists{/gist_id}","starred_url":"https://api.github.com/users/artemisIrelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemisIrelia/subscriptions","organizations_url":"https://api.github.com/users/artemisIrelia/orgs","repos_url":"https://api.github.com/users/artemisIrelia/repos","events_url":"https://api.github.com/users/artemisIrelia/events{/privacy}","received_events_url":"https://api.github.com/users/artemisIrelia/received_events","type":"User","site_admin":false},"labels":[{"id":784148980,"node_id":"MDU6TGFiZWw3ODQxNDg5ODA=","url":"https://api.github.com/repos/transloadit/uppy/labels/React","name":"React","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-08-13T14:53:44Z","updated_at":"2018-08-17T11:43:06Z","closed_at":null,"author_association":"NONE","body":"This happens when I change pages, dismounting the uppy plugin. \r\nI have \r\n  const uppy = Uppy({\r\n      autoProceed: false,\r\n      restrictions: {\r\n        maxNumberOfFiles: 20,\r\n        minNumberOfFiles: 1,\r\n        allowedFileTypes: ['image/*'],\r\n      },\r\n    });\r\ninside render()\r\nand \r\n <Dashboard\r\n            uppy={uppy}\r\n            metaFields={[\r\n                    { id: 'name', name: 'Name', placeholder: 'file name' },\r\n                    ]}\r\n            height={50}\r\n            closeModalOnClickOutside\r\n            open={this.state.modalOpen}\r\n            onRequestClose={this.handleClose}\r\n            proudlyDisplayPoweredByUppy={false}\r\n          />\r\ninside return.\r\n\r\nI am using const Dashboard = require('@uppy/react/lib/Dashboard');"},"comment":{"url":"https://api.github.com/repos/transloadit/uppy/issues/comments/413839836","html_url":"https://github.com/transloadit/uppy/issues/996#issuecomment-413839836","issue_url":"https://api.github.com/repos/transloadit/uppy/issues/996","id":413839836,"node_id":"MDEyOklzc3VlQ29tbWVudDQxMzgzOTgzNg==","user":{"login":"artemisIrelia","id":24750542,"node_id":"MDQ6VXNlcjI0NzUwNTQy","avatar_url":"https://avatars2.githubusercontent.com/u/24750542?v=4","gravatar_id":"","url":"https://api.github.com/users/artemisIrelia","html_url":"https://github.com/artemisIrelia","followers_url":"https://api.github.com/users/artemisIrelia/followers","following_url":"https://api.github.com/users/artemisIrelia/following{/other_user}","gists_url":"https://api.github.com/users/artemisIrelia/gists{/gist_id}","starred_url":"https://api.github.com/users/artemisIrelia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/artemisIrelia/subscriptions","organizations_url":"https://api.github.com/users/artemisIrelia/orgs","repos_url":"https://api.github.com/users/artemisIrelia/repos","events_url":"https://api.github.com/users/artemisIrelia/events{/privacy}","received_events_url":"https://api.github.com/users/artemisIrelia/received_events","type":"User","site_admin":false},"created_at":"2018-08-17T11:43:06Z","updated_at":"2018-08-17T11:43:06Z","author_association":"NONE","body":"Yes, Using the react component. I need to put a url that is not constant for XHRUpload. However,  using uppy like this in a react component with states, the uppy instance that Dashboard previously hold no longer exists after a state change in the component. Hence, while unmounting, Dashboard will try to call functions on an instance of uppy that no longer exists.\r\n\r\nIs this a bug, or am I using it wrong?"}}
{"actor":{"display_login":"artemisIrelia"}}