📆 Article written day: 9/03/2020 📆 Article updated day: 6/18/2022
My System Specs:
- Microsoft Windows 10 Enterprise Version 21H2 (OS Build 19044.1766)
- WSL2 - Ubuntu 22.04 LTS
- Android Studio Version: Chipmunk 2021.2.1 Patch 1
echo "QuickbootFileBacked = off" >> ~/.android/advancedFeatures.ini |
import { useStateWithCallback } from './useStateWithCallback'; | |
function MyComponent() { | |
const [count, setCount] = useStateWithCallback(0, (value) => { | |
console.log(`Count updated: ${value}`); | |
}); | |
function increment() { | |
setCount(count + 1, () => { | |
console.log(`Count incremented: ${count + 1}`); |
If you have a large number of Angular projects and defining individual build commands for each project in the package.json file becomes unwieldy, you can consider using a different approach to organize your build commands. Here are a few suggestions:
Example angular-projects.json:
[
{
"name": "ProjectA",
#!/bin/bash | |
# macOS Silverback Debloater | |
# v1.0 by Wamphyre | |
# Disabling SIP is required ("csrutil disable" from Terminal in Recovery) | |
# Modifications are written in /private/var/db/com.apple.xpc.launchd/ disabled.plist, disabled.501.plist | |
# To revert, delete /private/var/db/com.apple.xpc.launchd/ disabled.plist and disabled.501.plist and reboot; sudo rm -r /private/var/db/com.apple.xpc.launchd/* | |
# Disabling Spotlight |