This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* `useLocalStorage` | |
* | |
* Features: | |
* - JSON Serializing | |
* - Also value will be updated everywhere, when value updated (via `storage` event) | |
*/ | |
import { useEffect, useState } from "react"; | |
export default function useLocalStorage<T>(key: string, defaultValue: T): [T, (value: T) => void] { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '3.9' | |
services: | |
postgres: | |
image: 'postgres' | |
env_file: | |
- .env | |
ports: | |
- '5431:5432' # EXPOSED ON PORT 5431!!! | |
volumes: | |
- postgres-data:/var/lib/postgresql/data |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
eJzsvd+rbOd1Jbr/ED0l+AaMg40lbHOOCUg64lqRFJCPhJMjqY10jkmsIwdJJ8ayLHHbOZIRjtptJBF1S/INicyNjWM3bYkbiP2QB0EgMRu6XxoaLt391k/9JzSXPWtrj9pjzzlrzvWt2qv23uNlUL9rVdX6Ro055o/v/9v7P/7q//0/f/M/fvM/Pru/97//9/8WCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBDsI99x11y4chkAgOK/wzP137u9d/vQnd+FYBALB+YJvf+XK/t47L9zY33v84Qd24YAEAsH5AuOX919+dn/vla9elZwRCAQzwvefeuCQXwAP3n15Fw5NIBCccUCQBH756Wu39veee+KR/b0Hvvj5XThIgUBwduEHzz6xv/eLH750SC0Au+Oxh760CwcpEAjOJIBfPJKx2777jRuSMwKBYCJYkPTB26+tU8vPbv/xCaa5es8l+cACgaAFcGI8EYNwSckmgUDQhcd/71P7e2/cuHbC6SX9gnsRM6keWCAQbASkqyk0Ar946kbujEAgqMH7f3Ztf+8nL11fB0/EfPDqzfWHmPZ55P57FTgJBIIQqCbmvWce3t976/r9CfHQVdXOCASCAKzx0Vjlwxev7e/9/DtPnJAp7z7/Rz7dEOdYZ5PcGYFAcAwsVwRq+fD2dZ9kPFahemAlmwQCwTF49dq9J/gFVz3pUrBtrHZGckYgEHxcc/frv7i5DkQyxCowa7wQitwZaRqB4AIDpas//P4z65ES3JmfP391nUuYZI4iJbrj6n33Sc4IBBcawBskYohpiF9ef+ye9bQT5IxHMlcufWF/78oX7tyFzysQCE4PIGI8fkERDAVOP3rq3kMaIZIhfrGXt5S4OpsEgosJxhu/evOFdZLBVbqE2t8fP/2gTyhgFQgb3GYxk5hG |