Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/company search #72

Merged
merged 8 commits into from
Aug 6, 2024
Merged

Feature/company search #72

merged 8 commits into from
Aug 6, 2024

Conversation

Romstone
Copy link
Collaborator

No description provided.

Copy link

vercel bot commented Jul 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Updated (UTC)
zero-company-app ⬜️ Ignored (Inspect) Aug 6, 2024 3:16pm

@iliubinskii
Copy link
Owner

It works.

But there is no need to request categories on client side:

const [categories, setCategories] = useState<ExistingCategory[]>([]);

Instead, let's load them during build process. For this:

  1. Break component into page.tsx and ClientPage.tsx
  2. Use getCategoriesSrv inside page.tsx and pass categories to ClientPage.tsx as prop
    (see how getCategoriesSrv is used in other places)

@iliubinskii iliubinskii merged commit 642222e into develop Aug 6, 2024
6 checks passed
@iliubinskii iliubinskii deleted the feature/company-search branch August 6, 2024 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants