Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

128 list add category name in page title #154

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

wazolab
Copy link
Member

@wazolab wazolab commented Feb 6, 2024

I think we have an anti-pattern about how data is fetch.
It would be better to do data fetching on page level and then propagate them through props or store (in order to avoid props drilling in case we have too much depth between page and last component).

Components would be used for UI only, all the logic resides on higher level. It will give us more scalability and easy of maintenance. As of today we have data fetching a bit everywhere which make it hard to understand and brings rendering issues.

I think we have to think Components as dumb pieces of code, which renders a small piece of layout with the data given in props.

@wazolab wazolab linked an issue Feb 6, 2024 that may be closed by this pull request
@wazolab wazolab requested a review from frodrigo February 6, 2024 13:02
@wazolab wazolab self-assigned this Feb 6, 2024
@wazolab wazolab added the bug Something isn't working label Feb 6, 2024
@frodrigo frodrigo merged commit 652c100 into develop Feb 6, 2024
5 checks passed
@wazolab wazolab deleted the 128-list-add-category-name-in-page-title branch April 9, 2024 15:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[list] Add category name in page title
2 participants