Initial commit: MVP+ wish board with FastAPI + Tailwind

This commit is contained in:
Nikita committed 2026-08-05 17:06:36 +05:00
commit cd945a6128
2277 files changed
+843095

No files matched your search

+23
View File
@@ -0,0 +1,23 @@
import { guard } from '../action-creators';
import type { Middleware } from '../store-types';
import type { StyleMarshal } from '../../view/use-style-marshal/style-marshal-types';
export default (marshal: StyleMarshal): Middleware =>
() =>
(next) =>
(action) => {
if (guard(action, 'INITIAL_PUBLISH')) {
marshal.dragging();
}
if (guard(action, 'DROP_ANIMATE')) {
marshal.dropping(action.payload.completed.result.reason);
}
// this will clear any styles immediately before a reorder
if (guard(action, 'FLUSH') || guard(action, 'DROP_COMPLETE')) {
marshal.resting();
}
next(action);
};