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.

React has unmountComponentAtNode, preact has render(null, element), etc.

How would that work in Superfine?

patch(null, null, container) // ?

// or

unmount(container) //?

What is it expected from this operation?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:20 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
mindplay-dkcommented, Oct 22, 2018

Unmounting (calling life-cycle events) would just be patch(lastState, null, container) right?

Describing this as “unmounting” doesn’t really make much sense though, as nothing gets “mounted” in the first place - the library is stateless, it isn’t mounting a component in the DOM or something, it’s just simply “patching”, according to the new/old state you provide.

If you provide a null state, it removes the nodes - still just a “patch” by any other name.

Just my two cents.

1reaction
jorgebucarancommented, Jul 12, 2018

@uchcode I want to add this feature, one way or another, I just would like to discuss what behavior we all want.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Mount and Unmount Storage Devices from the Linux ...
To unmount a mounted file system, use the umount command. Note that there is no “n” between the “u” and the “m”—the command...
Read more >
How To Mount and Unmount Drives on Linux - devconnected
On Linux, the easiest way to unmount drives on Linux is to use the “umount” command. Note : the “umount” command should not...
Read more >
How to unmount/detach volume from Linux and Windows VM
Choose a volume you want to unmount. Right-click and select "Change Drive Letter and Paths". Select the volume's drive letter and click "Remove"....
Read more >
Mounting and unmounting media using Linux
Type cd and then press Enter. · Type one of the following commands: If the medium to be unmounted is a CD, type...
Read more >
How to Unmount a Volume in Windows - Computer Hope
In Disk Management, locate the block that represents the volume you want to unmount. · Select the volume's drive letter, and click Remove....
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