Can vue use middleware?

react can use middleware in this way

const store = createStore(
  reducer,
  applyMiddleware(thunk, promise, logger)
);

applyMiddleware (thunk, promise, logger) specifies the order of middleware, and then proceeds to the next step through next ()

vue doesn"t seem to have this function except router? Please let me know

May.02,2021

where is the application scenario where react uses middleware?
vue has its own design rules and implementation methods
not all have to use middleware


the example you give is redux middleware, not react.

react has no middleware system api

vue also does not officially provide such sequentially executed middleware.

as you said, it is very simple to implement a "middleware system" by yourself

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf1a62-315da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf1a62-315da.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?