{"action":"created","issue":{"url":"https://api.github.com/repos/tdeekens/flopflip/issues/475","repository_url":"https://api.github.com/repos/tdeekens/flopflip","labels_url":"https://api.github.com/repos/tdeekens/flopflip/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/tdeekens/flopflip/issues/475/comments","events_url":"https://api.github.com/repos/tdeekens/flopflip/issues/475/events","html_url":"https://github.com/tdeekens/flopflip/issues/475","id":356874771,"node_id":"MDU6SXNzdWUzNTY4NzQ3NzE=","number":475,"title":"Allow reset of memory-adapter","user":{"login":"dferber90","id":1765075,"node_id":"MDQ6VXNlcjE3NjUwNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1765075?v=4","gravatar_id":"","url":"https://api.github.com/users/dferber90","html_url":"https://github.com/dferber90","followers_url":"https://api.github.com/users/dferber90/followers","following_url":"https://api.github.com/users/dferber90/following{/other_user}","gists_url":"https://api.github.com/users/dferber90/gists{/gist_id}","starred_url":"https://api.github.com/users/dferber90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dferber90/subscriptions","organizations_url":"https://api.github.com/users/dferber90/orgs","repos_url":"https://api.github.com/users/dferber90/repos","events_url":"https://api.github.com/users/dferber90/events{/privacy}","received_events_url":"https://api.github.com/users/dferber90/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-09-04T15:55:20Z","updated_at":"2018-09-05T07:29:53Z","closed_at":null,"author_association":"NONE","body":"First of all: Lovely package :)\r\n\r\nI'm using the `memory-adapter` in an integration test to provide the default flags like this:\r\n\r\n```jsx\r\nimport memoryAdapter from '@flopflip/memory-adapter'\r\n\r\n<ConfigureFlopFlip\r\n  adapter={memoryAdapter}\r\n  defaultFlags={{ someFeature: true }}\r\n>\r\n  <ComponentUnderTestWhichUsesFlags />\r\n</ConfigureFlopFlip>\r\n```\r\n\r\nIt would be great if it was possible to reset the `memoryAdapter` after each test like so\r\n\r\n```js\r\nafterEach(() => {\r\n  memoryAdapter.reset()\r\n})\r\n```\r\n\r\nDo you think this is a good idea?\r\n\r\nThe closest thing to this I've found would be to do `memoryAdapter.reconfigure()`. Or should we have a dedicated `test-adapter`?\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/tdeekens/flopflip/issues/comments/418628388","html_url":"https://github.com/tdeekens/flopflip/issues/475#issuecomment-418628388","issue_url":"https://api.github.com/repos/tdeekens/flopflip/issues/475","id":418628388,"node_id":"MDEyOklzc3VlQ29tbWVudDQxODYyODM4OA==","user":{"login":"dferber90","id":1765075,"node_id":"MDQ6VXNlcjE3NjUwNzU=","avatar_url":"https://avatars0.githubusercontent.com/u/1765075?v=4","gravatar_id":"","url":"https://api.github.com/users/dferber90","html_url":"https://github.com/dferber90","followers_url":"https://api.github.com/users/dferber90/followers","following_url":"https://api.github.com/users/dferber90/following{/other_user}","gists_url":"https://api.github.com/users/dferber90/gists{/gist_id}","starred_url":"https://api.github.com/users/dferber90/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dferber90/subscriptions","organizations_url":"https://api.github.com/users/dferber90/orgs","repos_url":"https://api.github.com/users/dferber90/repos","events_url":"https://api.github.com/users/dferber90/events{/privacy}","received_events_url":"https://api.github.com/users/dferber90/received_events","type":"User","site_admin":false},"created_at":"2018-09-05T07:29:53Z","updated_at":"2018-09-05T07:29:53Z","author_association":"NONE","body":"Sounds good to me as well 👍 "}}
{"actor":{"display_login":"dferber90"}}