mirror of
https://github.com/getredash/redash.git
synced 2026-03-22 01:00:14 -04:00
* Prettier all the JS files * Add GitHub Action to autoformat code pushed to master * Fix eslint violation due to formatting. * Remove GitHub actions for styling * Add restyled.io config
7 lines
162 B
JavaScript
7 lines
162 B
JavaScript
import { useState } from "react";
|
|
|
|
export default function useForceUpdate() {
|
|
const [, setValue] = useState(false);
|
|
return () => setValue(value => !value);
|
|
}
|