Questions tagged [unmount]
92 questions
1
vote
1 answer
How do I unmount a div generated by a loop using id's in React.js?
I want to be able to close the box(div) by using generated id's. I am confused as to what exactly should be inside .unmountComponentAtNode(HERE)
I've tried < div id={i} style={divStyle}>
in the return statement of Box and assigning it in the…

Reality is a Fractal
- 67
- 5
1
vote
1 answer
How do I unmount automatically and power off the device?
mkdir /media/user/2; cd /media/user; mkdir 3 4 5 6 7 8
umount -R /media/ but folders are still persisting and crating a mess.
I did create fixed directories in /media but they still persist after unmounting, unlike Ubuntu which deletes them. It also…

koe
- 111
- 4
1
vote
1 answer
Cocoa: detect unmountable volume
I folks,
I am developing a small app which should be able to unmount volumes.
Currently, I am using the following code to determine whether a volume is unmountable or not:
BOOL isRemovable, isWritable, isUnmountable;
NSString *description,…
user212926
1
vote
1 answer
OS X cannot detach volume, hdiutil error
I need to install Java from command line. This is what I am trying:
hdiutil attach javaforosx.dmg
cd /Volumes/Java\ for\ OS\ X\ 2015-001/
sudo installer -pkg JavaForOSX.pkg -target "/"
sudo hdiutil detach hdiutil detach /Volumes/Java\ for\ OS\ X\…

SexyBeast
- 7,913
- 28
- 108
- 196
1
vote
0 answers
Unmount USB Drive/Sdcard programatically Android (Have Root Access)
I am trying to unmount the sdcard/usb drive programatically from Android JellyBean device. I have the mountpaths for them. /mnt/udisk and /mnt/extsd respectively. I have SuperUser Access.
I have tried running the following code but does not give me…

Susheel
- 784
- 1
- 12
- 20
1
vote
3 answers
How unmount programmatically USB DRIVE in Android 4.2
I have read many posts on this topic, but I have not found a solution yet.
In my application I need to unmount the USB DRIVE after copying files from USB DRIVE to the tablet, so I can safely remove it without using the Settings menu.
Right now I am…

matzrm
- 77
- 3
- 12
1
vote
3 answers
Is there any way Not to detect USB from windows PC?
Is there any way Not to detect USB from windows PC?
The USB device should not mount on windows PC ,It should be handled by my application..
Suggestions please...

user3167959
- 31
- 1
- 6
1
vote
2 answers
Failed to unmount /mnt/secure/staging
android Unable to access files in SD card ####Android无法访问SD卡中的文件
I am working on application where it create text files in the SD card.
I have a receiver which will execute logic to create files in SD card from that point I will keep on store some…

IDOYEE
- 11
- 2
0
votes
2 answers
How to prevent components from constantly remounting when lazy-loading with react-intersection-observer?
I am lazy-loading components on a React page by using react-intersection-observer:
import React from "react";
import { useInView } from "react-intersection-observer";
const LazyComponent = ({ LoadableComponent, ...rest }) => {
const { ref, inView…

Ruben Lemiengre
- 104
- 8
0
votes
1 answer
Unmounting a RUN cache-type mount in a Dockerfile
In a Dockerfile, I am mounting a cache:
RUN --mount=type=cache,target=/opt/conda/pkgs \
...
I would like this mount to be valid for the duration of either
just this RUN command
until it is unmounted a few layers further down
Is there a way…

creative-resort
- 11
- 3
0
votes
0 answers
STM32 Can't remount SD after replacing SD card
I'm still having trouble with my SD card slot on my STM32F410RB Nucleo Board. After resetting the microcontroller, I'm able to mount the card successfully again, but as soon as I remove the SD card, I'm not able to mount it anymore.
When trying to…

S P
- 1
0
votes
1 answer
React functional component - how to ask user to confirm when leaving a component
I have a quite traditional problem but I haven't found a solution thus far searching around on Stackoverflow.
My problem is like this.
I have a functional component which renders a form (using Formik). This component is rendered inside another Tab…

Hoang Ha
- 1
- 1
0
votes
0 answers
How to properly unmount a form in useEffect cleanup function
Constantly throws an error:
Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup…
0
votes
2 answers
How can i unmount a functional component from DOM on click of a Button
I would like to "Unmount a simple Functional Component" from the DOM. I searched a lot and saw most of the tutorials are based on Class Components and I did'nt see any simple example on it. My requirement is Unmounting a Functional component from…

Ren Jitsm
- 429
- 1
- 4
- 16
0
votes
0 answers
How can I fix ReactDOM.unmountComponentAtNode error in React?
The ReactDOM.unmountComponentAtNode(document.getElementById("root")); are unavailable in latest React.
It shows the errors below. How can I fix it?
"You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to…

David Lew
- 13
- 3