Help forum
- I'm looking web expert(urgent)
Golden
0 1 day ago
if you are interested , Dm me - Best way to init a variable depending the data return by an api call
Jehex
34 1 day ago
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 - Switch for button color
Matthieu B.
3 2 days ago
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 blocs but it looks complex , and I like to make things look simple 😇 A simple would have been simple , but it seems that there isn 't . How do you deel with this use case ? - Set default value for Attributes
Matthieu B.
6 3 days ago
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 - Set radius dynamically ?
Matthieu B.
5 3 days ago
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 ? - How to you check for undefined?
unicodes
23 4 days ago
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 ? - absolute begginer
luffy
1 7 days ago
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 ! - Supabase PATCH not Working Outside of Editor
Ethan
✅117 8 days ago
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 ? - Use HTTP cookies without sending them in the body at login
𝓜𝓪𝔁𝓲
4 9 days ago
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 " - Service worker
ssssadsadasd
22 9 days ago
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 = 8 5 9 0 4 c 8 : 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 - Getting isTrusted: False from a custom action
PilotBuddy
1 9 days ago
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 🙂 - Autofetch and api parameters
ssssadsadasd
5 9 days ago
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 ? - Design System based on Spark Core – best practices?
Obvijes
👍15 10 days ago
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 ? - Get Http-Only Cookie Value in "application/x-www-form-urlencoded"
Noel Bank
✅121 10 days ago
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 ? - Legacy Action Warning - setSessionCookies depreciated?
Scrabblebat
3 11 days ago
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 .