From f1cdf58a5cff5ed59edc47c45a88857a3156b377 Mon Sep 17 00:00:00 2001
From: Nichita Pasecinic
Date: Thu, 12 May 2022 20:47:45 +0300
Subject: [PATCH 1/2] fix: flickering for invalid role check
---
example/src/App.tsx | 2 +-
src/hooks/use-role.hook.ts | 85 +++++++++++---------
src/route/common.tsx | 2 +-
src/route/private.tsx | 2 +-
src/route/public.tsx | 2 +-
src/shared/invalid-user-default-fallback.tsx | 2 +-
6 files changed, 50 insertions(+), 45 deletions(-)
diff --git a/example/src/App.tsx b/example/src/App.tsx
index 41b3e87..9d2687b 100644
--- a/example/src/App.tsx
+++ b/example/src/App.tsx
@@ -82,7 +82,7 @@ const App = () => {
-
- Route required roles:{' '}
+ Route required roles:
{JSON.stringify(routeRequiredRoles)}
>
From eb81ee91e146cef4683138e2cc21dd10ac7688fd Mon Sep 17 00:00:00 2001
From: Nichita Pasecinic
Date: Thu, 12 May 2022 20:48:09 +0300
Subject: [PATCH 2/2] update `package.json` version
---
package.json | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package.json b/package.json
index c50dba8..dc321ef 100644
--- a/package.json
+++ b/package.json
@@ -1,5 +1,5 @@
{
- "version": "0.4.1",
+ "version": "0.4.2",
"license": "MIT",
"main": "dist/index.js",
"typings": "dist/index.d.ts",