René's URL Explorer Experiment


Title: WIP Rethinking actions and action creation by lkmill · Pull Request #182 · developit/unistore · GitHub

Open Graph Title: WIP Rethinking actions and action creation by lkmill · Pull Request #182 · developit/unistore

X Title: WIP Rethinking actions and action creation by lkmill · Pull Request #182 · developit/unistore

Description: 🌶 350b / 650b state container with component actions for Preact & React - WIP Rethinking actions and action creation by lkmill · Pull Request #182 · developit/unistore

Open Graph Description: This PR rethinks actions and action creators. An action now simply becomes an unbound function with two arguments, state and store (or only store, see discussion below). More commonly a user will u...

X Description: This PR rethinks actions and action creators. An action now simply becomes an unbound function with two arguments, state and store (or only store, see discussion below). More commonly a user will u...

Opengraph URL: https://github.com/developit/unistore/pull/182

X: @github

direct link

Domain: patch-diff.githubusercontent.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:4a2dfe48-400e-7c81-24e0-5205d6fd7477
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC998:22A113:B7E3FA:F07F8F:6991FC9F
html-safe-nonceb85d370fb5e5e09433837240f4883906e002df994508ac8124936cf486a9ad8b
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTk4OjIyQTExMzpCN0UzRkE6RjA3RjhGOjY5OTFGQzlGIiwidmlzaXRvcl9pZCI6IjUxMjk1MzkxMTc2NTk1ODU2OTUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac674af7da1dcd9c2756dd049f55b1c0d6d35cf792a831240a85334a7285858d8c
hovercard-subject-tagpull_request:347534672
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/developit/unistore/182/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/85e4130bf3f9442f7a8ee7dadd94753758ac360cab9df585a97b01f71f8c3a84/developit/unistore/pull/182
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/85e4130bf3f9442f7a8ee7dadd94753758ac360cab9df585a97b01f71f8c3a84/developit/unistore/pull/182
og:image:altThis PR rethinks actions and action creators. An action now simply becomes an unbound function with two arguments, state and store (or only store, see discussion below). More commonly a user will u...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamelkmill
hostnamegithub.com
expected-hostnamegithub.com
None42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b
turbo-cache-controlno-cache
go-importgithub.com/developit/unistore git https://github.com/developit/unistore.git
octolytics-dimension-user_id105127
octolytics-dimension-user_logindevelopit
octolytics-dimension-repository_id113351554
octolytics-dimension-repository_nwodevelopit/unistore
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id113351554
octolytics-dimension-repository_network_root_nwodevelopit/unistore
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release848bc6032dcc93a9a7301dcc3f379a72ba13b96e
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/developit/unistore/pull/182#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevelopit%2Funistore%2Fpull%2F182
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevelopit%2Funistore%2Fpull%2F182
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=developit%2Funistore
Reloadhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
Reloadhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
Reloadhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
developit https://patch-diff.githubusercontent.com/developit
unistorehttps://patch-diff.githubusercontent.com/developit/unistore
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fdevelopit%2Funistore
Fork 137 https://patch-diff.githubusercontent.com/login?return_to=%2Fdevelopit%2Funistore
Star 2.9k https://patch-diff.githubusercontent.com/login?return_to=%2Fdevelopit%2Funistore
Code https://patch-diff.githubusercontent.com/developit/unistore
Issues 36 https://patch-diff.githubusercontent.com/developit/unistore/issues
Pull requests 10 https://patch-diff.githubusercontent.com/developit/unistore/pulls
Actions https://patch-diff.githubusercontent.com/developit/unistore/actions
Projects 0 https://patch-diff.githubusercontent.com/developit/unistore/projects
Wiki https://patch-diff.githubusercontent.com/developit/unistore/wiki
Security 0 https://patch-diff.githubusercontent.com/developit/unistore/security
Insights https://patch-diff.githubusercontent.com/developit/unistore/pulse
Code https://patch-diff.githubusercontent.com/developit/unistore
Issues https://patch-diff.githubusercontent.com/developit/unistore/issues
Pull requests https://patch-diff.githubusercontent.com/developit/unistore/pulls
Actions https://patch-diff.githubusercontent.com/developit/unistore/actions
Projects https://patch-diff.githubusercontent.com/developit/unistore/projects
Wiki https://patch-diff.githubusercontent.com/developit/unistore/wiki
Security https://patch-diff.githubusercontent.com/developit/unistore/security
Insights https://patch-diff.githubusercontent.com/developit/unistore/pulse
lkmillhttps://patch-diff.githubusercontent.com/lkmill
developit:masterhttps://patch-diff.githubusercontent.com/developit/unistore/tree/master
lkmill:feature/new-action-creatorshttps://patch-diff.githubusercontent.com/lkmill/unistore/tree/feature/new-action-creators
Conversationhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
Commits18 (18)https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits
Checkshttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/checks
Files changedhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/files
WIP Rethinking actions and action creationhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182#top
lkmillhttps://patch-diff.githubusercontent.com/lkmill
developit:masterhttps://patch-diff.githubusercontent.com/developit/unistore/tree/master
lkmill:feature/new-action-creatorshttps://patch-diff.githubusercontent.com/lkmill/unistore/tree/feature/new-action-creators
https://patch-diff.githubusercontent.com/lkmill
lkmillhttps://patch-diff.githubusercontent.com/lkmill
Dec 2, 2019https://patch-diff.githubusercontent.com/developit/unistore/pull/182#issue-531015706
Please reload this pagehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
https://jsperf.com/binding-vs-action-creatorshttps://jsperf.com/binding-vs-action-creators
Please reload this pagehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
lkmillhttps://patch-diff.githubusercontent.com/lkmill
December 1, 2019 19:30https://patch-diff.githubusercontent.com/developit/unistore/pull/182#commits-pushed-4d862dc
https://patch-diff.githubusercontent.com/lkmill
Implement new action creator logichttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/4d862dc216450f8ead1426d1ed9465dcd9af73e9
4d862dchttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/4d862dc216450f8ead1426d1ed9465dcd9af73e9
https://patch-diff.githubusercontent.com/lkmill
Update tests to work with new action creatorshttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/7214734a50ea662627e165cd9fed3946daba87e1
7214734https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/7214734a50ea662627e165cd9fed3946daba87e1
https://patch-diff.githubusercontent.com/lkmill
Update types to match new action logichttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/5e058170f6fbe18d323cd25520544304539639d1
5e05817https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/5e058170f6fbe18d323cd25520544304539639d1
https://patch-diff.githubusercontent.com/lkmill
Pass update object to listenershttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/5f629f7a30437bd8f90a07f7a101e64a0e5fc3d9
5f629f7https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/5f629f7a30437bd8f90a07f7a101e64a0e5fc3d9
https://patch-diff.githubusercontent.com/lkmill
Pass update object to devtools on actionhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/c90747d1d97b83a98e38dc02041b8d3f03181af7
c90747dhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/c90747d1d97b83a98e38dc02041b8d3f03181af7
https://patch-diff.githubusercontent.com/lkmill
Differentiate between unnamed actions and direct setState calls in de…https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/9f22c9cca5872c89153fd17c4f64de061ea265dc
9f22c9chttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/9f22c9cca5872c89153fd17c4f64de061ea265dc
https://patch-diff.githubusercontent.com/lkmill
Update tests to handle update argument in listenershttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/3b1e5b9ff06e673020d596c899754586c5057890
3b1e5b9https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/3b1e5b9ff06e673020d596c899754586c5057890
https://patch-diff.githubusercontent.com/lkmill
Prefer action.type over action.namehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/e856053acabdb4a6c59276f975798f9256e0e1fd
e856053https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/e856053acabdb4a6c59276f975798f9256e0e1fd
https://patch-diff.githubusercontent.com/lkmill
lkmillhttps://patch-diff.githubusercontent.com/lkmill
Dec 4, 2019 https://patch-diff.githubusercontent.com/developit/unistore/pull/182#ref-pullrequest-531030267
WIP Pass extra argument to actions #183 https://patch-diff.githubusercontent.com/developit/unistore/pull/183
https://patch-diff.githubusercontent.com/lkmill
lkmillhttps://patch-diff.githubusercontent.com/lkmill
Dec 5, 2019https://patch-diff.githubusercontent.com/developit/unistore/pull/182#event-2857720844
https://patch-diff.githubusercontent.com/lkmill
lkmillhttps://patch-diff.githubusercontent.com/lkmill
Dec 6, 2019https://patch-diff.githubusercontent.com/developit/unistore/pull/182#event-2862614100
Save 2 bytes #180 https://patch-diff.githubusercontent.com/developit/unistore/pull/180
Micro-optimize action binding by preallocating arguments array #179 https://patch-diff.githubusercontent.com/developit/unistore/pull/179
fix #171 - remove warnings about deprecated hook on react 16.9.0^ #172 https://patch-diff.githubusercontent.com/developit/unistore/pull/172
https://patch-diff.githubusercontent.com/lkmill
lkmillhttps://patch-diff.githubusercontent.com/lkmill
Jan 3, 2020https://patch-diff.githubusercontent.com/developit/unistore/pull/182#issuecomment-570681627
@developithttps://github.com/developit
Please reload this pagehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
https://patch-diff.githubusercontent.com/Akiyamka
Akiyamkahttps://patch-diff.githubusercontent.com/Akiyamka
Jan 4, 2020https://patch-diff.githubusercontent.com/developit/unistore/pull/182#issuecomment-570762039
Please reload this pagehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
https://patch-diff.githubusercontent.com/lkmill
lkmillhttps://patch-diff.githubusercontent.com/lkmill
Jan 4, 2020https://patch-diff.githubusercontent.com/developit/unistore/pull/182#issuecomment-570803855
Please reload this pagehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
@Akiyamkahttps://github.com/Akiyamka
Please reload this pagehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
lkmillhttps://patch-diff.githubusercontent.com/lkmill
April 6, 2020 00:07https://patch-diff.githubusercontent.com/developit/unistore/pull/182#commits-pushed-91ad719
https://patch-diff.githubusercontent.com/lkmill
Pass store.getState and store.action to action functionshttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/91ad7198c0524df2ae2460d43c538742081b2c84
91ad719https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/91ad7198c0524df2ae2460d43c538742081b2c84
https://patch-diff.githubusercontent.com/lkmill
Split Action type into separate AsyncAction and SyncActionhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/203dc79ef32bcf83ab7e649cadbad9c49da974c6
203dc79https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/203dc79ef32bcf83ab7e649cadbad9c49da974c6
https://patch-diff.githubusercontent.com/lkmill
Update Action and MappedAction object typeshttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/a682ffd2a9ab46b6ae1129b9ae3a77b92390b57c
a682ffdhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/a682ffd2a9ab46b6ae1129b9ae3a77b92390b57c
https://patch-diff.githubusercontent.com/lkmill
Allow null mapStateToPropshttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/49c4f8785be28e2f58199cc61440caeef420eba8
49c4f87https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/49c4f8785be28e2f58199cc61440caeef420eba8
https://patch-diff.githubusercontent.com/lkmill
Use correct type letter for store statehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/4dc3fde41558ddba0f1491eb87deac9476196cb2
4dc3fdehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/4dc3fde41558ddba0f1491eb87deac9476196cb2
https://patch-diff.githubusercontent.com/lkmill
lkmillhttps://patch-diff.githubusercontent.com/lkmill
force-pushedhttps://patch-diff.githubusercontent.com/developit/unistore/compare/06663cb747e28c1622917783e9fc6f302d9d344f..4dc3fde41558ddba0f1491eb87deac9476196cb2
06663cbhttps://patch-diff.githubusercontent.com/developit/unistore/commit/06663cb747e28c1622917783e9fc6f302d9d344f
4dc3fdehttps://patch-diff.githubusercontent.com/developit/unistore/commit/4dc3fde41558ddba0f1491eb87deac9476196cb2
Compare https://patch-diff.githubusercontent.com/developit/unistore/compare/06663cb747e28c1622917783e9fc6f302d9d344f..4dc3fde41558ddba0f1491eb87deac9476196cb2
April 6, 2020 15:51https://patch-diff.githubusercontent.com/developit/unistore/pull/182#event-3206034498
lkmillhttps://patch-diff.githubusercontent.com/lkmill
April 6, 2020 18:23https://patch-diff.githubusercontent.com/developit/unistore/pull/182#commits-pushed-c246282
https://patch-diff.githubusercontent.com/lkmill
Rename store.action to store.dispatchhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/c24628295486deebc575c3ea97764efc503bfd45
c246282https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/c24628295486deebc575c3ea97764efc503bfd45
https://patch-diff.githubusercontent.com/lkmill
Move out dispatch and getState to fix this reference errorshttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/f38838996bb7da4af53937dd3f2b5043bb34c129
f388389https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/f38838996bb7da4af53937dd3f2b5043bb34c129
https://patch-diff.githubusercontent.com/lkmill
Update tests to pass new logichttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/f53452e7446e1a0de641775acd680c852fd0c2fb
f53452ehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/f53452e7446e1a0de641775acd680c852fd0c2fb
https://patch-diff.githubusercontent.com/lkmill
Print state properties that have changed in unnamed actions and setStatehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/4361a8319f3e7ac2eb71b3a92e529bf4148d40ae
4361a83https://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/4361a8319f3e7ac2eb71b3a92e529bf4148d40ae
https://patch-diff.githubusercontent.com/lkmill
Set update to empty object if not suppliedhttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/ac1f2caab584068d6cd0aebf4118dcdb1a033a70
ac1f2cahttps://patch-diff.githubusercontent.com/developit/unistore/pull/182/commits/ac1f2caab584068d6cd0aebf4118dcdb1a033a70
https://github.co/hiddenchars
https://patch-diff.githubusercontent.com/developit/unistore/pull/{{ revealButtonHref }}
Sign up for freehttps://patch-diff.githubusercontent.com/join?source=comment-repo
Sign in to commenthttps://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fdevelopit%2Funistore%2Fpull%2F182
Please reload this pagehttps://patch-diff.githubusercontent.com/developit/unistore/pull/182
https://patch-diff.githubusercontent.com/lkmill
https://patch-diff.githubusercontent.com/Akiyamka
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.