Open magsout opened 3 years ago
I want to improved and made the codebase easier to maintain and understand. We use https://nextjs.org/ for the server and the client. So we can move local feature to nextjs features (like fetching data).
objectNested
getFiltersFromUrl
const router = useRouter().query
pushFiltersToUrl
router.push
toQueryObject
toQueryString
Replaced class components by function components (by using react hook):
added missing property like aria-*
aria-*
Improved fetching by using getServerSideProps and swr
Then we could remove request
renamed modules by normalizers then tests all functions.
modules
normalizers
I want to improved and made the codebase easier to maintain and understand. We use https://nextjs.org/ for the server and the client. So we can move local feature to nextjs features (like fetching data).
libraries
objectNested
-> Nullish Coalescing and Optional ChaininggetFiltersFromUrl
->const router = useRouter().query
pushFiltersToUrl
->router.push
toQueryObject
toQueryString
function components
Replaced class components by function components (by using react hook):
accessibility
added missing property like
aria-*
fetching
Improved fetching by using getServerSideProps and swr
Then we could remove request
modules
renamed
modules
bynormalizers
then tests all functions.