Silver-Spy
Silver-Spy
Explore posts from servers
CCConvex Community
Created by Silver-Spy on 9/9/2023 in #support-community
How can i store the output from a function i am running
Thank you so much i couldnt figure it out for the longest time @jamwt 🫂
5 replies
CCConvex Community
Created by Musab on 9/8/2023 in #support-community
Using NextAuth with Convex
Better use Clerk for now as its simpler and easy to use
9 replies
CCConvex Community
Created by Silver-Spy on 9/5/2023 in #support-community
Function undefined is not a supported Convex type.(Next js )
i made a simple typo. To resolve the issue you need to make sure you close the function Problem
return ctx.db.query('todos').collect
return ctx.db.query('todos').collect
Solution
return ctx.db.query('todos').collect()
return ctx.db.query('todos').collect()
I will leave it here if anyone else has the same issue and might refer to it Issue resolved
2 replies
TTCTheo's Typesafe Cult
Created by Silver-Spy on 8/24/2023 in #questions
Redux toolkit Presist Error
I fixed it if anyone wants to know in the future
import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit';
import cartReducer from './state/cartSlice';
import { persistStore, persistReducer } from 'redux-persist';
import storage from 'redux-persist/lib/storage';

const persistConfig = {
key: 'root',
storage,
};
const persistedReducer = persistReducer(persistConfig, cartReducer);

export const store = configureStore({
reducer: {
cart: persistedReducer,
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: false,
}),
});
export const persistor = persistStore(store);
import { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit';
import cartReducer from './state/cartSlice';
import { persistStore, persistReducer } from 'redux-persist';
import storage from 'redux-persist/lib/storage';

const persistConfig = {
key: 'root',
storage,
};
const persistedReducer = persistReducer(persistConfig, cartReducer);

export const store = configureStore({
reducer: {
cart: persistedReducer,
},
middleware: (getDefaultMiddleware) =>
getDefaultMiddleware({
serializableCheck: false,
}),
});
export const persistor = persistStore(store);
2 replies