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.

Dont delete container, or provide a means to retain it

See original GitHub issue

I have a container that I use with containerId. However when the portal closes you delete the container element. This breaks my app.

The reason I use a custom element is to apply a className to the container to have the portal content styled.

After closing the portal, your library deletes this container element, then when re-opening the portal it re-creates the element under the body which is in the wrong place

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
wellyshencommented, Mar 23, 2021

@cameronbraid Here’s a new autoRemoveContainer option in v1.1.0 for you.

0reactions
zningcommented, May 25, 2021

@cameronbraid Here’s a new autoRemoveContainer option in v1.1.0 for you.

I just tested today and autoRemoveContainer did’t work for me, sadly. I guess if the default is keep the div, probably less issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Docker error cannot delete docker container, conflict: unable ...
In short, a container is a runnable instance of an image. which is why you cannot delete an image if there is a...
Read more >
Cannot delete a storage account with containers with locked ...
The Delete Container operation will fail if at least one blob exists within the container with either a locked or unlocked time-based retention...
Read more >
docker rm - Docker Documentation
This command removes the container and any volumes associated with it. Note that if a volume was specified with a name, it will...
Read more >
Docker Cleanup: How to Remove Images, Containers ...
The Docker prune command automatically removes the resources not associated with a container. This is a quick way to get rid of old...
Read more >
Docker: How to Stop and Remove All Containers at Once
So, using stop instead of rm -f is a good idea, whether you're stopping a set of containers or just one at a...
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