support ssr when build app
This commit is contained in:
+2
-2
@@ -59,8 +59,8 @@ export function Page() {
|
||||
const pageContext = usePageContext();
|
||||
const searchParams: any = pageContext.urlParsed.search;
|
||||
|
||||
const pubkey = searchParams.pubkey;
|
||||
const privkey = searchParams.privkey;
|
||||
const pubkey = searchParams.pubkey || '';
|
||||
const privkey = searchParams.privkey || '';
|
||||
|
||||
const pool: any = useContext(RelayContext);
|
||||
const [loading, setLoading] = useState(false);
|
||||
+1
-1
@@ -18,7 +18,7 @@ export function Page() {
|
||||
const searchParams = pageContext.urlParsed.search;
|
||||
|
||||
const privkey = searchParams.privkey;
|
||||
const pubkey = useMemo(() => getPublicKey(privkey), [privkey]);
|
||||
const pubkey = useMemo(() => (privkey ? getPublicKey(privkey) : ''), [privkey]);
|
||||
|
||||
const pool: any = useContext(RelayContext);
|
||||
const [profile, setProfile] = useState({ metadata: null });
|
||||
@@ -1,5 +1,3 @@
|
||||
'use client';
|
||||
|
||||
import NewsfeedLayout from '@components/layouts/newsfeed';
|
||||
import ProfileFollowers from '@components/profile/followers';
|
||||
import ProfileFollows from '@components/profile/follows';
|
||||
Reference in New Issue
Block a user