Title: Fixing default devtools export · Issue #199 · developit/unistore · GitHub
Open Graph Title: Fixing default devtools export · Issue #199 · developit/unistore
X Title: Fixing default devtools export · Issue #199 · developit/unistore
Description: Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch unistore@3.5.2 for the project I'm working on. Here is the diff that solved my problem: diff --git a/node_modules/unistore/devtools.js b/node_modu...
Open Graph Description: Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch unistore@3.5.2 for the project I'm working on. Here is the diff that solved my problem: diff --git a/node_...
X Description: Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch unistore@3.5.2 for the project I'm working on. Here is the diff that solved my problem: diff --git a/n...
Opengraph URL: https://github.com/developit/unistore/issues/199
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Fixing default devtools export","articleBody":"Hi! 👋 \r\n \r\nFirstly, thanks for your work on this project! 🙂\r\n\r\nToday I used [patch-package](https://github.com/ds300/patch-package) to patch `unistore@3.5.2` for the project I'm working on.\r\n\r\n\u003c!-- 🔺️🔺️🔺️ PLEASE REPLACE THIS BLOCK with a description of your problem, and any other relevant context 🔺️🔺️🔺️ --\u003e\r\n\r\nHere is the diff that solved my problem:\r\n\r\n```diff\r\ndiff --git a/node_modules/unistore/devtools.js b/node_modules/unistore/devtools.js\r\nindex 6c6b2f1..33143de 100644\r\n--- a/node_modules/unistore/devtools.js\r\n+++ b/node_modules/unistore/devtools.js\r\n@@ -1,6 +1,6 @@\r\n-module.exports = function unistoreDevTools(store) {\r\n-\tvar extension = window.__REDUX_DEVTOOLS_EXTENSION__ || window.top.__REDUX_DEVTOOLS_EXTENSION__;\r\n-\tvar ignoreState = false;\r\n+function unistoreDevTools(store) {\r\n+\tconst extension = window.__REDUX_DEVTOOLS_EXTENSION__ || window.top.__REDUX_DEVTOOLS_EXTENSION__;\r\n+\tconst ignoreState = false;\r\n \r\n \tif (!extension) {\r\n \t\tconsole.warn('Please install/enable Redux devtools extension');\r\n@@ -19,7 +19,7 @@ module.exports = function unistoreDevTools(store) {\r\n \t\t});\r\n \t\tstore.devtools.init(store.getState());\r\n \t\tstore.subscribe(function (state, action) {\r\n-\t\t\tvar actionName = action \u0026\u0026 action.name || 'setState';\r\n+\t\t\tconst actionName = action \u0026\u0026 action.name || 'setState';\r\n \r\n \t\t\tif (!ignoreState) {\r\n \t\t\t\tstore.devtools.send(actionName, state);\r\n@@ -31,3 +31,5 @@ module.exports = function unistoreDevTools(store) {\r\n \r\n \treturn store;\r\n }\r\n+\r\n+export default unistoreDevTools;\r\n```\r\n\r\n\u003cem\u003eThis issue body was [partially generated by patch-package](https://github.com/ds300/patch-package/issues/296).\u003c/em\u003e\r\n","author":{"url":"https://github.com/civancza","@type":"Person","name":"civancza"},"datePublished":"2024-06-20T14:00:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/199/unistore/issues/199"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:af02ac1a-8dda-6a1c-b208-1f50e1317fda |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 826A:6964C:269DE8B:31DCAEE:6990BDBA |
| html-safe-nonce | 0af2d20c95b57169305e018cc11b7f080766c15edae3a4f95235ae7b910a066e |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MjZBOjY5NjRDOjI2OURFOEI6MzFEQ0FFRTo2OTkwQkRCQSIsInZpc2l0b3JfaWQiOiI1MjQ1NDk4MTkyMzU5ODk4NTU0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 1d000e0897956da974b804400f9952f68c5ea80111a924dd7a5c3166aa9dd3ea |
| hovercard-subject-tag | issue:2364536737 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developit/unistore/199/issue_layout |
| twitter:image | https://opengraph.githubassets.com/fe3008fab2394c9aad4568b682dfa36b2630e038f306a46488e97780a2303306/developit/unistore/issues/199 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/fe3008fab2394c9aad4568b682dfa36b2630e038f306a46488e97780a2303306/developit/unistore/issues/199 |
| og:image:alt | Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used patch-package to patch unistore@3.5.2 for the project I'm working on. Here is the diff that solved my problem: diff --git a/node_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | civancza |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/developit/unistore git https://github.com/developit/unistore.git |
| octolytics-dimension-user_id | 105127 |
| octolytics-dimension-user_login | developit |
| octolytics-dimension-repository_id | 113351554 |
| octolytics-dimension-repository_nwo | developit/unistore |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 113351554 |
| octolytics-dimension-repository_network_root_nwo | developit/unistore |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width