mirror of
https://github.com/nowcommunity/nowdatabase.git
synced 2026-10-12 19:13:52 +03:00
add redux tag to getAllMuseums
This commit is contained in:
@@ -7,6 +7,7 @@ const museumsApi = api.injectEndpoints({
|
|||||||
query: () => ({
|
query: () => ({
|
||||||
url: `/museum/all`,
|
url: `/museum/all`,
|
||||||
}),
|
}),
|
||||||
|
providesTags: result => (result ? [{ type: 'museums' }] : []),
|
||||||
}),
|
}),
|
||||||
getMuseumDetails: builder.query<Museum, string>({
|
getMuseumDetails: builder.query<Museum, string>({
|
||||||
query: id => ({
|
query: id => ({
|
||||||
|
|||||||
Reference in New Issue
Block a user