Elson TC
Feb 28, 2023

For dialogs you can use a dialog manager which relies on global state rather then a component state. Have a single component at the root of your app that listens to the dialog global state and render accordingly. This allows you to open dialog from anywhere. Perhaps ill write an article on this.

My method in this article is not to avoid re-render. Is to batch state updates and have a single representation and API for state handling.

An additional benefit (which i don mention in the article) is the ability to define state guards. Perhaps a different article as well.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Elson TC
Elson TC

Written by Elson TC

Software Engineer sharing knowledge, experience, and perspective from an employee and personal point of view.

No responses yet

Write a response