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

Component delegation to context #15879

Open
ghost opened this issue Jun 13, 2019 · 2 comments
Open

Component delegation to context #15879

ghost opened this issue Jun 13, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 13, 2019

Do you want to request a feature or report a bug?
Report a bug

Introduction/Concept
I was trying to make a modal package (bootstrap visual as a placeholder) that instead of instancing modals all over the DOM and virtual DOM, would concentrate the data in a holder/controller. This controller would be responsible for providing the modal context and display/hide when necessary.

What is the current behavior?
The state of the modal content only updates when I recall the show method.

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. Your bug will get fixed much faster if we can run your code and it doesn't have dependencies other than React. Paste the link to your JSFiddle (https://jsfiddle.net/Luktwrdm/) or CodeSandbox (https://codesandbox.io/s/new) example below:
https://codesandbox.io/s/modals-react-i8bdn (Bootstrap is included only to make the modal work)

What is the expected behavior?
That React would keep the state sync with the counter value.

Which versions of React, and which browser / OS are affected by this issue? Did this work in previous versions of React?
16.8.6
All browsers/OS
No

Copy link

This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. We are sorry that we haven't been able to prioritize it yet. If you have any new additional information, please include it with your comment!

@github-actions github-actions bot added the Resolution: Stale Automatically closed due to inactivity label Apr 10, 2024
@juhiz8
Copy link

juhiz8 commented Apr 10, 2024 via email

@github-actions github-actions bot removed the Resolution: Stale Automatically closed due to inactivity label Apr 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant