Replies: 1 comment 4 replies
-
There are ways to avoid that with simple principles:
How big are these features? Seems to me that each of them can comfortably fit inside a single file. Besides, things like theme management can be placed in shared/ui as well, and the state of the sidebar can be encapsulated within the sidebar itself |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm doing a todo app, I have 4 pages and my main page is dashboard. I've got the structure similar to something like this:
These features are not reusable, cause it all happens on the same page, steiger suggests me move all slices to the layer above, so to the kanban-board widget, doing that, my widget would become a complete mess with a lot of ui and lib folders. Do you have any suggestions how i can accomplish this?
And also features like toggle-sidebar, and change-theme - it works only in one place, but moving everything to widgets would become unreal to maintain.
Beta Was this translation helpful? Give feedback.
All reactions