Skip to content

Commit

Permalink
chore(refine): add useNewQueryKeys: true to options (#377)
Browse files Browse the repository at this point in the history
* chore(refine): add `useNewQueryKeys` option

* chore(refine): add missing `projectId` property of `options`

* chore: fix useMenu route usage

* chore: update social image

---------

Co-authored-by: Ömer Faruk APLAK <[email protected]>
  • Loading branch information
aliemir and omeraplak authored Nov 13, 2023
1 parent 3b1a313 commit 00790f3
Show file tree
Hide file tree
Showing 16 changed files with 36 additions and 8 deletions.
2 changes: 1 addition & 1 deletion refine-nextjs/plugins/_base/src/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<Link
href={item.route}
href={item.route ?? "/"}
className={selectedKey === item.key ? "active" : ""}
>
{item.label}
Expand Down
4 changes: 4 additions & 0 deletions refine-nextjs/plugins/auth-provider-auth0/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
{props.children}
Expand Down
4 changes: 4 additions & 0 deletions refine-nextjs/plugins/auth-provider-google/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
{props.children}
Expand Down
4 changes: 4 additions & 0 deletions refine-nextjs/plugins/auth-provider-keycloak/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ export type NextPageWithLayout<P = {}, IP = P> = NextPage<P, IP> & {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
{props.children}
Expand Down
1 change: 1 addition & 0 deletions refine-nextjs/template/pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@ function MyApp({ Component, pageProps }: AppPropsWithLayout): JSX.Element {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down
2 changes: 1 addition & 1 deletion refine-react/plugins/_base/src/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<NavLink
to={item.route}
to={item.route ?? "/"}
>
{item.label}
</NavLink>
Expand Down
4 changes: 2 additions & 2 deletions refine-react/template/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="refine | Build your React-based CRUD applications, without constraints." />
<meta data-rh="true" property="og:image" content="https://refine.dev/img/refine_social_new.png" />
<meta data-rh="true" name="twitter:image" content="https://refine.dev/img/refine_social_new.png" />
<meta data-rh="true" property="og:image" content="https://refine.dev/img/refine_social.png" />
<meta data-rh="true" name="twitter:image" content="https://refine.dev/img/refine_social.png" />
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
Expand Down
1 change: 1 addition & 0 deletions refine-react/template/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down
2 changes: 1 addition & 1 deletion refine-remix/plugins/_base/app/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<NavLink
to={item.route}
to={item.route ?? "/"}
>
{item.label}
</NavLink>
Expand Down
4 changes: 4 additions & 0 deletions refine-remix/plugins/chakra/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,10 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
<Outlet />
Expand Down
4 changes: 4 additions & 0 deletions refine-remix/plugins/mantine/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,10 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
<Outlet />
Expand Down
4 changes: 4 additions & 0 deletions refine-remix/plugins/mui/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
}}
>
<Outlet />
Expand Down
1 change: 1 addition & 0 deletions refine-remix/template/app/root.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ export default function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down
2 changes: 1 addition & 1 deletion refine-vite/plugins/_base/src/components/menu/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export const Menu = () => {
{menuItems.map((item) => (
<li key={item.key}>
<NavLink
to={item.route}
to={item.route ?? "/"}
>
{item.label}
</NavLink>
Expand Down
4 changes: 2 additions & 2 deletions refine-vite/template/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
<meta
data-rh="true"
property="og:image"
content="https://refine.dev/img/refine_social_new.png"
content="https://refine.dev/img/refine_social.png"
/>
<meta
data-rh="true"
name="twitter:image"
content="https://refine.dev/img/refine_social_new.png"
content="https://refine.dev/img/refine_social.png"
/>
<title>
refine - Build your React-based CRUD applications, without
Expand Down
1 change: 1 addition & 0 deletions refine-vite/template/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ function App() {
options={{
syncWithLocation: true,
warnWhenUnsavedChanges: true,
useNewQueryKeys: true,
<%_ if (typeof projectId !== 'undefined' && projectId !== '') { _%>
projectId: "<%= projectId %>",
<%_ } _%>
Expand Down

0 comments on commit 00790f3

Please sign in to comment.