Is your feature request related to a problem? Please describe.
Yes. Implementing one table for each entity can cause serious code duplication issues due to the tables having more lines than other type of files.
Describe the solution you'd like
Just one component for every table, for any entity.
Describe alternatives you've considered
Implementing a "Standard Table" that doesn't limits the current features of the current table system.
Is your feature request related to a problem? Please describe.
Getting user permissions require some coding, which may duplicate code with time.
Describe the solution you'd like
Create a hook usePermissions() which should return an array of logged in user permissions.
// to avoid thisconst{ user }=useContext(AuthContext);const{ data }=useQuery("user-profiles",()=>api.get(`users/${user?.id}`),{enabled: !!user?.id,});console.log("profiles ==> ",data?.data.profiles);
Describe alternatives you've considered
Solution would be:
Is your feature request related to a problem? Please describe.
As the app grows, it is very common to create more and more React Contexts, which will make app slower.
Describe the solution you'd like
We could use something like RecoilJS (First announced in 2020)
Describe alternatives you've considered
No, please no Redux 🌞
Is your feature request related to a problem? Please describe.
Currently there is no way to generate code for data tables, which easily gets 100+ lines of code.