Skip to main content
Question

Limiting Component Requests on a Wireframe Website

  • April 21, 2024
  • 4 replies
  • 138 views

Hey guys, I’m building a website where users can access different wireframe components, such as a hero section or footer section. However, I want to ensure that users can only request one pattern at a time. Currently, I’m using ‘importComponentByKeyAsync’, but as stated, I’m encountering an issue where I get the entire hero section, including the footer, header, etc. Is there a way to get one specific thing, like the footer, in my hero section without giving out everything?

This topic has been closed for replies.

4 replies

Gleb
  • Power Member
  • April 21, 2024

Put these items into separate components?


  • Author
  • April 21, 2024

That’s my last approach. The reason I haven’t done that yet is that it would require me to create 50+ components.


Gleb
  • Power Member
  • April 21, 2024

I can’t imagine this being a problem. Large systems require hundreds of components sometimes, if not thousands. Why are you concerned about this?


  • Author
  • April 21, 2024

It wouldn’t be much of a problem, actually; it would just require me to rethink my backend/frontend design a bit. Hehe, thanks for the help!