Pricing Blog

Help forum

  • golden06185_84457-1416176320936804412

    Golden

    0

    1 day ago

    I'm looking web expert(urgent)
    if you are interested, Dm me
  • jehex-1416007355442794577

    Jehex

    34

    1 day ago

    Best way to init a variable depending the data return by an api call
    Hi there, quick question let's said when the user logs in into my app then it's call an api for get this type ( let said free / premium ) then with this result I init a variable who will display a list of objects into a component ( lets said if the user it's free it's show the list menu for free users and if premium its show the list menu for premium users )

    What's can be the easiest / cleanest way to do that knowing that context consumer uses the initial value. I did find a solution but I realize that it's not optimal at all. Thanks
  • matt_apollodev-1415594988183748649

    Matthieu B.

    3

    2 days ago

    Switch for button color
    TL;DR : switch logic in nordcraft ?

    I'm trying to say this :
    - if my attribute = 'black' -> then define a specific style variable,
    - if 'outlined' -> then output a different color
    - if 'warning' -> then ..
    - if 'error' -> then ...

    I can do it with if/else blocs but it looks complex, and I like to make things look simple 😇

    A simple switch would have been simple, but it seems that there isn't.

    How do you deel with this use case ?
  • matt_apollodev-1415375300212166686

    Matthieu B.

    6

    3 days ago

    Set default value for Attributes
    i'm trying to set a default value for my component's attributes.
    Ideally for the input type, i'd like to have a select, or object where I can just select the input type instead of having to type it.

    How could I do that ?

    Thanks a lot for your help
  • matt_apollodev-1415355081276129333

    Matthieu B.

    5

    3 days ago

    Set radius dynamically ?
    Hello,
    i'm moving away from weweb to benefit from the SEO and performance.

    I'm trying to set dynamic values for my radius.
    Is there a way to do that ?
  • uunicode-1415000900602167366

    unicodes

    23

    4 days ago

    How to you check for undefined?
    For that cases where you have an input, you can check not equal to null, to empty string, but for undefined? You can convert to string and say not equal to undefined, but something like not equal to null does exist?
  • luffydoro_111.-1413843627272044574

    luffy

    1

    7 days ago

    absolute begginer
    hello i am completly new to full stack web development . i have completed HTML and CSS . i am learning javascript right now . i need guidance and i want to earn money through freelancing by full stack web development . i appreciate your help . thank you !
  • _.__._.__.__._-1413493397972320326

    Ethan

    1
    17

    8 days ago

    Supabase PATCH not Working Outside of Editor
    Hi all,

    I've begun testing my app outside of the editor, but I have run into an issue. I have a page with a post and a patch API call. The page functions as intended when tested inside of the editor, but not when in a separate tab.

    The POST API works both inside and outside of the editor, but when the PATCH API is called, the following is returned:
    Object { error: "NetworkError when attempting to fetch resource.", status: undefined }

    I'm not sure as to why this is happening, Is there something special I am supposed to do for PATCH calls?
  • mxi012-1413381891909877760

    𝓜𝓪𝔁𝓲

    4

    9 days ago

    Use HTTP cookies without sending them in the body at login
    Were using our own backend. This sends cookie data as set cookie and http cookie. So its not accessible via JS. Is it possible to get this cookie in a way where we proxy it via nordcraft proxy and make it available on the page as *.nordcraft.com cookie. So our frontend can use the cookie in dev.

    In prod its working because our backend domain equals the frontend domain. Cookes are set with "Lax"
  • ssssadsadasd-1413264251660927109

    ssssadsadasd

    22

    9 days ago

    Service worker
    So, I have a js file in supabase and I enter the url in the Service Worker filed ([see here](https://editor.nordcraft.com/projects/seno12/branches/start/components/test-worker?canvas-width=800&canvas-height=800&mode=design&rightpanel=attributes&selection=nodes.QjNuJkBABo_p0DypGl4XP&leftpanel=Files)).

    however it throws an error: Uncaught ReferenceError: importScripts is not defined
    at serviceWorker.js?v=85904c8:3:1


    AI tells me to add a script element with attribute content = if ('serviceWorker' in navigator) { window.addEventListener('load', () => { navigator.serviceWorker.register('/serviceWorker.js') .then(registration => { console.log('Service Worker registered successfully.'); }) .catch(error => { console.error('Service Worker registration failed:', error); }); }); }
    but this does not solve the issue.

    anyone knows how to fix this? thanks
  • pilotbinski-1413227643121303712

    PilotBuddy

    1

    9 days ago

    Getting isTrusted: False from a custom action
    I created a workflow to use a custom action. The action event is giving me isTrusted: False . It worked when I first set it up. Any insight would be so helpful! Thanks 🙂
  • ssssadsadasd-1413117208137044009

    ssssadsadasd

    5

    9 days ago

    Autofetch and api parameters
    I have an api with an autofetch. I want autofetch to trigger only when this rule is true.
    however, the api is autofetched even when simply one of the body parameters is changed.
    how to prevent the latter?
  • obvijes-1412775681380585535

    Obvijes

    👍1
    5

    10 days ago

    Design System based on Spark Core – best practices?
    We want to set up our own design system in NC, but we’d like it to be based on Spark Core. The tricky part: as far as I can tell, you can’t include one package inside another.

    Our idea was to have our design system as a package, and then integrate SparkCore into it so we can use it as the foundation. Copying Spark and building on top of it doesn’t feel great — too many components, no way to update later, etc. What we’d really like is a “package-in-package” approach.

    Maybe that’s not how NC is meant to handle dependencies, but for us it would be ideal. What’s the best practice here? Is there another way to build a design system on top of Spark and reuse it across projects?
  • nbank-1412720294174523454

    Noel Bank

    1
    21

    10 days ago

    Get Http-Only Cookie Value in "application/x-www-form-urlencoded"
    Hey! Does anyone know why the value is wrapped in "{{}}"? I'm using this formula in a proxied request, but the value always shows as "{{ cookies.refresh_token }}" instead of the actual cookie value. Does anyone have any ideas on how to resolve this issue?
  • scrabblebat-1412657608460075108

    Scrabblebat

    3

    11 days ago

    Legacy Action Warning - setSessionCookies depreciated?
    Hi! I'm setting up an authentication flow and the UI is telling me that Set Session cookies is depreciated.

    I cant figure out what action I should be using instead.