question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: How to render inside a modal window?

See original GitHub issue

I did some poking around and found an example of opening a modal dialog in a separate window in Elmish.WPF using their Binding type (https://github.com/elmish/Elmish.WPF/tree/master/src/Samples/NewWindow). Is rendering to a separate dialog box possible in FuncUI? How would I go about doing it?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

2reactions
FoggyFindercommented, Sep 8, 2020

But there’s currently an exception being thrown when you try to open the second window as a dialog,

@AngelMunoz I’ve opened PR with fix: at least it works fine on my system.

1reaction
AngelMunozcommented, Sep 8, 2020

Yes I think I had one but deleted it since I was not pleased with the design I took for that sample I made this sample that I believe fits better the MVU architecture but lacks inter window communication, for that you might need to use a listener (or an observable/CLI Event) and subscriptions

https://github.com/AngelMunoz/MultiWindow

But there’s currently an exception being thrown when you try to open the second window as a dialog,

Error: Call from invalid thread

@JaggerJo I think this might be a bug unless I’m missing something

Read more comments on GitHub >

github_iconTop Results From Across the Web

In React, component inside of a modal to be ready/ ...
I have a react component that opens a modal window, and inside of that modal window, there is a second component, a form....
Read more >
How To Implement a Modal Component in React
Build a modal component in your React project using props and state to control displaying and closing.
Read more >
Code a React Modal Tutorial using Hooks - YouTube
Build a Modal in ReactJS Tutorial. In this video I will show you guys how to build a simple modal in react!
Read more >
How to render modals in React
One strategy is to use ReactDOM portals, and put the modal in a div that is a sibling component to the div with...
Read more >
The Dialog element - HTML: HyperText Markup Language
Use the appropriate .showModal() or .show() method to render dialogs. If creating a custom dialog implementation, ensure all expected default ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found