Skip to content

Commit

Permalink
optimistic in aborter
Browse files Browse the repository at this point in the history
  • Loading branch information
hazae41 committed Sep 30, 2022
1 parent 58593e1 commit 7b92d70
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hazae41/xswr",
"version": "1.0.83",
"version": "1.0.84",
"author": "hazae41",
"license": "MIT",
"description": "The simplest React data (re)fetching library ever made",
Expand Down
2 changes: 1 addition & 1 deletion src/mods/single/helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ export class SingleHelper {
current.aborter.abort("Replaced")

current = await this.core.mutate(skey, current,
c => ({ time: c?.time, aborter }),
c => ({ time: c?.time, aborter, optimistic: true }),
params)
return { current }
})
Expand Down
14 changes: 7 additions & 7 deletions test/next/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/next/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"lint": "next lint"
},
"dependencies": {
"@hazae41/xswr": "^1.0.83",
"@hazae41/xswr": "^1.0.84",
"next": "12.2.5",
"react": "18.2.0",
"react-dom": "18.2.0"
Expand Down

1 comment on commit 7b92d70

@vercel
Copy link

@vercel vercel bot commented on 7b92d70 Sep 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

xswr-test – ./

xswr-test-git-master-hazae41.vercel.app
xswr-test-hazae41.vercel.app
test.xswr.hazae41.me

Please sign in to comment.