Closed Mhmdabed11 closed 4 years ago
Deploy request for rebuild-black-business accepted.
Accepted with commit 9197f11db3a2b66b1bb7fe69cadb3c69acfe8014
https://app.netlify.com/sites/rebuild-black-business/deploys/5fac3ee15e050c0007a84ba3
@Mhmdabed11 it does appear that we're getting a build error when testing this deployment:
@Mhmdabed11 it does appear that we're getting a build error when testing this deployment:
Ohh I guess that is because splitSlug
does not exist on the server. I will look into that
This PR implements client side routing and data fetching for individual businesses. So when a new business is added, users can directly visit its profile page without having to trigger a gatsby build.
Related to #374 Fixes #374
Pages/Interfaces that will change
No design changes. The url of the profile business page will now hold the id of the business in the database rather than the airtable id.
Steps to test
Additional notes
I set the
refetchOnWindowFocus
attribute ofReact Query
to false since the business details in the profile page are being refetched on window focus and it was a bit misleading especially that we do not have a placeholder while the page is loading. This shows alot when the business does not exist, which in this case RQ will refetch several times before throwing an error. I am more than happy to discuss this further in case it has some use-case I am not aware of.