アニメーション(#139) (#252)
#139 #139 #139 #139 #139 Merge branch 'feature/140' into feature/139 Merge remote-tracking branch 'origin/main' into feature/139 #140 Merge remote-tracking branch 'origin/main' into feature/140 Merge remote-tracking branch 'origin/main' into feature/140 #140 ぼちぼち Merge remote-tracking branch 'origin/main' into feature/140 #140 #140 #140 #139 アニメーション Co-authored-by: miteruzo <miteruzo@naver.com> Reviewed-on: #252
このコミットはPull リクエスト #252 でマージされました.
このコミットが含まれているのは:
@@ -0,0 +1,19 @@
|
||||
import { create } from 'zustand'
|
||||
|
||||
type SharedTransitionState = {
|
||||
byLocationKey: Record<string, string>
|
||||
setForLocationKey: (locationKey: string, sharedId: string) => void
|
||||
clearForLocationKey: (locationKey: string) => void }
|
||||
|
||||
|
||||
export const useSharedTransitionStore = create<SharedTransitionState> (set => ({
|
||||
byLocationKey: { },
|
||||
setForLocationKey: (locationKey, sharedId) =>
|
||||
set (state => ({ byLocationKey: { ...state.byLocationKey,
|
||||
[locationKey]: sharedId } })),
|
||||
clearForLocationKey: (locationKey) =>
|
||||
set (state => {
|
||||
const next = { ...state.byLocationKey }
|
||||
delete next[locationKey]
|
||||
return { byLocationKey: next }
|
||||
}) }))
|
||||
新しい課題から参照
ユーザをブロックする