@bbki.ng/site 5.5.20 → 5.5.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @bbki.ng/site
2
2
 
3
+ ## 5.5.21
4
+
5
+ ### Patch Changes
6
+
7
+ - 166aa70: fix loading state error
8
+
3
9
  ## 5.5.20
4
10
 
5
11
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbki.ng/site",
3
- "version": "5.5.20",
3
+ "version": "5.5.21",
4
4
  "description": "code behind bbki.ng",
5
5
  "main": "index.js",
6
6
  "type": "module",
@@ -7,7 +7,7 @@ import { useFingerprint } from '@/hooks/use_fingerprint';
7
7
  const hashStr: string = typeof GLOBAL_COMMIT_HASH === 'string' ? GLOBAL_COMMIT_HASH : '0000000';
8
8
 
9
9
  export const EffectContextProvider = (props: { children: ReactNode }) => {
10
- const { isLoading, isFontLoading } = useContext(GlobalLoadingContext);
10
+ const { isLoading } = useContext(GlobalLoadingContext);
11
11
  const { deviceId } = useFingerprint();
12
12
 
13
13
  const effects: Effect[] = useMemo(() => {
@@ -15,13 +15,8 @@ export const EffectContextProvider = (props: { children: ReactNode }) => {
15
15
  if (deviceId) wmLines.push(deviceId);
16
16
  wmLines.push('hello world');
17
17
 
18
- return [
19
- grain(),
20
- paper(),
21
- spiral({ active: isLoading || isFontLoading }),
22
- watermark({ lines: wmLines }),
23
- ];
24
- }, [isLoading, isFontLoading, deviceId]);
18
+ return [grain(), paper(), spiral({ active: isLoading }), watermark({ lines: wmLines })];
19
+ }, [isLoading, deviceId]);
25
20
 
26
21
  return (
27
22
  <>