Skip to content

Where should we place the error boundaries for the toast system? #795

Closed Answered by seancolsen
seancolsen asked this question in Developer Q&A
Discussion options

You must be logged in to vote

Pavish and I chatted about this today and decided to go with his approach

The toast system should only be called only within the the view layer, which includes both components and utils.

That means that no files outside of sections, components, and pages should call the toast system. And files within those directories should only call the toast system if they are specific to the view layer. Data-specific files should not call the toast system.

Replies: 2 comments 2 replies

Comment options

seancolsen
Nov 4, 2021
Maintainer Author

You must be logged in to vote
2 replies
@pavish
Comment options

@pavish
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by seancolsen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
work: frontend Related to frontend code in the mathesar_ui directory
2 participants