community health

For anyone else struggling with getting an input component to save a number using Antd, you have to use <InputNumber>. <Input /> and <Input type='number' /> so NOT work. I probably should have known this but it would have been great if anyone one from the community could have helped me out with this. I am sure this is common knowledge for most but I spent 2 hours trying to find a solution to this.
kapa.ai
kapa.ai182d ago
Hi @Omer. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
Omer
Omer182d ago
Hey, please don't send the same questions through different channels. This way, we can make the refine Community support channels more accessible for everyone.
kapa.ai
kapa.ai182d ago
Sorry @Omer, I seem to be having a bit of trouble. Don't worry though, I've pinged my supprt and they will try to fix me up! :technologist: Perhaps try again in 15mins?
inland-turquoise
inland-turquoise182d ago
Thank you for responding, it's great to finally get community feedback. I have been posting to this server for over a week and this is the first community feedback that I've gotten. Where is the best place to post questions to the community?
Omer
Omer182d ago
Unfortunately, there's no single answer to this. As far as I can see, you're new to Refine and have quite a few questions, which is very natural. Often, reviewing documents and examples can be a good starting point. We can't offer any SLA for community support as this is entirely a volunteer service. We try to help everyone as much as possible here, but it's not feasible to respond to dozens of messages per day. If you're working on a critical project, you can get priority support with Refine's Enterprise package
inland-turquoise
inland-turquoise181d ago
Yes I am new to refine and this is my first CRUD admin project. I totally understand that no one person or even a team of people can respond to every question. That is why every good open source project needs a strong community to support it. And that is also why when I have found solutions to my question I have posted what I have found. To help anyone else looking for the same answers. I love contributing when I can and I have developed a dataProvider for tRPC for refine. Do you have a boilerplate test repo that I could run it through before I share it with the community?
Omer
Omer181d ago
Thank you very much for your understanding and contributions! You can review the tests of the 'simple-rest data provider' here: https://github.com/refinedev/refine/tree/master/packages/simple-rest In the data-provider packages, we mock HTTP requests for testing using the nock (https://github.com/nock/nock) library
inland-turquoise
inland-turquoise181d ago
Do you have a codeSandbox template setup that I could clone and update?
inland-turquoise
inland-turquoise181d ago
@Omer on codeSandbox there are lost of templates. Is there one that the community officially supports and updates? https://i.imgur.com/irjV1s9.png
Imgur
Omer
Omer181d ago
for example or data-provider?
inland-turquoise
inland-turquoise181d ago
Both, I want to setup some examples for new feature requests and release a new dataProvider. 😁
Omer
Omer181d ago
You can use the following commands: For simple-rest: npx degit https://github.com/refinedev/refine/packages/simple-rest refine-trpc For example: npm create refine-app@latest -- --example base-antd
inland-turquoise
inland-turquoise181d ago
Thank you FYI when cloning simple-rest I get this error installing dep. https://pastebin.com/LYpLif1m
Omer
Omer181d ago
Do you have an idea? @Batu @aliemirs
vicious-gold
vicious-gold181d ago
Checking RN Hey @silentnyte, can you remove @refinedev/cli from package.json's devDependencies and try again? I. think the version of react causing this one, I'll check in more details.
inland-turquoise
inland-turquoise181d ago
That gets me past the dep warnings but then I get all these build errors. https://pastebin.com/RvaJZw0j I also tried npx degit https://github.com/refinedev/refine/packages/inferencer refine-inferencer. This one install fine but will also not build be cause it is missing references to the parent repo. https://pastebin.com/ZCZY0Lzg
vicious-gold
vicious-gold181d ago
For inferencer, its better to fork refine repo as a whole since its dependent on many other packages in the monorepo. Cant see the errors in the screenshot
inland-turquoise
inland-turquoise181d ago
That is odd. I wonder why it is blank? Try this one. https://pastebin.com/ezDSEn24
vicious-gold
vicious-gold181d ago
Gonna send you a dataprovider starter, Im on it.
inland-turquoise
inland-turquoise181d ago
Scratch that last message. It is not the correct error message. Here is the error message that I get with simple-rest https://pastebin.com/RbwiaRst
vicious-gold
vicious-gold180d ago
You can use this as a starter for DataProvider
vicious-gold
vicious-gold180d ago
I'll publish it under a git repo tomorrow, but for now, I think this should do the work.
inland-turquoise
inland-turquoise180d ago
Thank you
adverse-sapphire
adverse-sapphire17d ago
Thanks Batu, did you publish the package?
More Posts
Select defaultValue does not work on create pageHow do you set a defaultvalue for select component on create page?Can I do nested lists in Refine.For example, I have a list of users and each user has a list of chats. There should be a user pages nextjs v14does refine supports nextjs v 14?useSelect```const { selectProps } = useSelect({ resource: `master-data/${props.urlApi}`, optionLabel:Refine OAuth doesn't work to send user to "admin" page after loginI tried OAuth (with Discord) and when the user signs in, they aren't sent to the "admin" page.Access Control Casbin for nulled menu item (Parents)I have this: import { newModel, StringAdapter } from "casbin"; export const model = newModel(` [rUse FontAwesome simutaneously with AntDesignI want to use FontAwesome icon for sider menu, I'm using import type { RefineThemedLayoutV2SiderPropadd custom Sider menuItem in a separate fileI've a customSider where I have successfully insert my own menu item in. useEffect(() => { consMaximum call stack size exceeded Circular Reference Error, nested custom menu@kapa.ai Uncaught RangeError: Maximum call stack size exceeded. const { SubMenu } = Menu; const { usCircular Reference Error, nested custom menu Sider ThemedLayoutV2Sider and CanAccessThis is my sider.Add new menu item without affect the current menu itemI have this in my app.js <Refine dataProvider={dataProvider(supabaseClient)} rouRefine Example app-crm: open Modal without changing pageI'm using this as a reference: https://github.com/refinedev/refine/tree/master/examples/app-crm In tMonitor route change and active elementIs there anything/code I can insert into my App.js so that whenever the route change, it console logHi, I'm using refine + mantine + remix,Hi, I'm using refine + mantine + remix, and the mantine version is 5.10.4, however current release iSelect not sending as numberHow to make select send as a number on create?Casbin giving errors of can't find 'fs'I am having issues with casbin and its clearly from my lack of experience with using it. I am usinEdit page select dropdown show current valueHow can you get the edit page select dropdown show current value instead of select?Invalid Project Directory providedI've been trying to update refine project and I keep getting the error invalid project directory proget user role on authProviderI have authProvider with supabase client how can I get user's role. I have called the function consosetFilter with useDataGrid on mountIn the example for filtering in useDataGrid docs, handleFilter is called onChange. But how do I setF