Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to vike-react-redux ? #87

Open
tbscode opened this issue Feb 17, 2024 · 19 comments
Open

How to vike-react-redux ? #87

tbscode opened this issue Feb 17, 2024 · 19 comments

Comments

@tbscode
Copy link

tbscode commented Feb 17, 2024

Hi saw the open pull #57 🚀, I'm very interested in something similar for redux.
But adding a full abstraction over redux seems a little overkill for my case ( & annoying to maintain? )

I'd rather just be able to add a redux provider and global store to renderHtml & renderClient,
whilst using vike-react but without maintaining a seperate plug-in?

Is it already possible to redux with vike-react? ( I didn't manage )

How would one integrate it? ( or does it really require a separate plugin? )

@brillout
Copy link
Member

The general idea here is that vike-react should implement new hooks so that tools like Redux can be integrated in user-land and/or as a Vike extension.

For example, after @yoshi2no implemented vike-redux not only will you be able to use it, but you'll also be able to implement your own custom integration using the hooks that vike-redux uses.

In the meantime, the question is: what do you need from vike-react to be able to integrate Redux?

What you'll most liklely need is to be able to wrap the root component, for that you can see how vike-react-zustand does it. (FYI after vikejs/vike#1283 is implemented we won't need a new Wrapper setting per tool anymore.)

Beyond a Redux wrapper, do you need something else? I guess a way to pass the Redux store from the server to the client-side?

Let me know if that all makes sense. Also, if you're up for it, PR welcome that adds /examples/redux and that accomodates vike-react to make it possible.

@tbscode
Copy link
Author

tbscode commented Feb 17, 2024

Nice I'll bee looking out for vike-redux :D thanks for letting me know.

I'm currently using redux along the lines of official vike redux example

BUT instead of using +onBeforeRenderClient.tsx I use +onRenderHtml.tsx ( & +onRenderClient.tsx ) to inject the initial redux store.

As mofiying +onBeforeRenderclient.tsx causes an additional POST request when navigating clientside slowing down the navigation

You can see this behavior in the official vike redux example checking the netwok tab when navigating. ( Btw should I open this as a seperate issue possibly ? )

I've been able to completely avoid the additional POST /<page>/index.pageContext.json by setting the inital store in +onRenderHtml.tsx instead, see here

If you'd give me a hint on how to achive that whilst using vike-react I'd give it a try.
Current setup works but would be improved / cleaner with vike-react so I can also wait :)

@brillout
Copy link
Member

How about a new hook onAfterRenderHtml()?

@tbscode
Copy link
Author

tbscode commented Feb 17, 2024

Ok interesting yes, this would also prob solve the use case I posted in #community-help on discord.
I.e.: fetching data for the first SSR render, but then not re-fetching / posting to pageContext.json on client navigation.

I would still have to understand how to use this on inject the <Provider> though?

@brillout
Copy link
Member

I'm not sure what you mean, but feel free to suggest something else than creating a new custom hook onAfterRenderHtml().

@tbscode
Copy link
Author

tbscode commented Feb 17, 2024

What eactly would onAfterRenderHtml do?
How would I add the redux <Provider> if the pageHtml is already rendered?

I'd like to:

  1. use redux, wihout modifying +onBeforeRenderClient.tsx ( as this causes the additional POST I'd like to avoid ). In best case use it combined with vike-react.
  2. Fetch data on first Page render ( to initalize the store ), but NOT use +data.ts or +onBeforeRenderClient.tsx as this also causes the additional POST on clientside navigation.

@nitedani
Copy link
Member

nitedani commented Feb 18, 2024

  1. fetch data in +onBeforeRender.tsx, set it on pageContext
  2. add the provider in +Wrapper.tsx, get data from usePageContext

+Wrapper.tsx

const pageContext = usePageContext()
const [store] = useState(() => getStore(pageContext.PRELOADED_STATE))`
...
return <Provider store={store}>...</Provider>

@tbscode
Copy link
Author

tbscode commented Feb 18, 2024

But this would also cause an additional POST request on client side navigation.
Maybe a little example, so I'm working on a chat app:

If the user loads e.g.: /chat I would fetch all the chats for the initial render, use that to initialize the Redux store.
When the user clicks a chat I do client side navigation navigate(...) to /chat/<chat-uuid>, in this case the chats are already loaded into the store, so should NOT be fetched again.

But from my experiments, as soon as I use +onBeforeRender.tsx the navigation /chat -> /chat/<chat-uuid> triggers an additional POST to /chat/chat.pageContext.json. This is make navigating significantly slower.

I think this is just inherently how +onBeforeRender.tsx behaves, so I wonder if there is instead a hook that just runs on the first server side render.

@brillout
Copy link
Member

My thinking was that onAfterRenderHtml() would be called here (i.e. after the HTML is generated but before onRenderHtml() returns). Correct me if I'm wrong but, together with <Wrapper>, I think that would do the trick.

@tbscode
Copy link
Author

tbscode commented Feb 22, 2024

I'm not sure if I understand correctly:

Wrapper is added to pageView in getPageElement, and there I'd initialize the store?

But if onAfterRenderHtml runs after the html is rendered, how can I still inject data to the store?

I could see how it would work with a onBeforeRenderHtml ( also before pageView creation ). So something that runs only of first SSR render but still allows to fetch & pass data for the store initalization.

Since I still think the only way to avoid that vike send a POST /<page>/page.pageContext.json request on client-side navigation ( <page>/some -> <page>/other ) is not to use +onBeforeRender.tsx, in pages/<page>/*.

Correct me if I'm wrong or let me know if I should try to further clarify, thanks for taking the time!

@brillout
Copy link
Member

brillout commented Mar 12, 2024

@tbscode See #96 which is similar to what I meant.

Also see how the other extensions work, e.g. vike-react-query uses <Wrapper>.

Let me know if you still have questions. I can create a PR showcasing what I mean.

@tbscode
Copy link
Author

tbscode commented Mar 19, 2024

Thanks! So afaik +onAfterRenderClient allows me:

✅ client-side page-based fetching +onAfterRenderClient ( lets me simplify the app's client fetching logic, nice! )
❌ server-side fetching + initialize Redux store with dynamic data server-side without +onBeforeRender or +data ( as it causes POST requests on client-side navigation. )

Or is the second case possible in the current vike-react-zustand implementation?

However, I do now have a setup Redux + Vike such that:

  • some store data is initialized ( theme cookies, search & URL params )
  • all pages are rendered server-side (static UI renders immediately)
  • all dynamic data for internal pages is fetched client-side (optional server fetching for public pages)
  • allows full prerender + capacitor native build

I'd still like to migrate to vike-react at some point but don't see any benefits at the moment / I only fear that I might accidentally use some vike stuff that will be deprecated in the future.

So this isn't a high priority for me anymore! I'm happy ;)

I do have some special requirements like injecting URL params into the Redux state and passing some cookies through page context, and I (could) also achieve point 2 sorta by adding some route-based fetch calls to onRenderHtml.

Might be making some wrong assumptions about how vike works?
By the way, a diagram in the docs showing the flow of which +on* hook is hit when (for the SSR scenario) would be really helpful!

@brillout
Copy link
Member

brillout commented May 6, 2024

We've added a new hook onBeforeRenderClient() that may (or may not) help.

Contribution welcome for:

  • Implementing / exploring whether further hooks are needed.
  • Creating a Vike extension vike-react-redux.

a diagram in the docs showing the flow of which +on* hook is hit when

We've added https://vike.dev/hooks#order.

@brillout
Copy link
Member

Updated docs:

@cwagner22
Copy link

I'm trying to follow the docs (https://vike.dev/stores) to setup redux but pageContext.store from onAfterRenderHtml is undefined because it seems that onBeforeRenderHtml is not executed.

@brillout
Copy link
Member

@cwagner22 Indeed it's missing, let me implement it.

@brillout
Copy link
Member

brillout commented Nov 20, 2024

Done & released in 0.5.8.

@brillout
Copy link
Member

@cwagner22 In case your up for it, contribution welcome to create vike-react-redux. Or just publish an example, we'll then create vike-react-redux ourselves.

@brillout
Copy link
Member

We're working on it: #161. Let us know if it works for you.

nitedani added a commit that referenced this issue Mar 4, 2025
commit 2ab5f1d
Author: Romuald Brillout <[email protected]>
Date:   Sat Mar 1 09:27:00 2025 +0100

    comment

commit f2411fa
Author: Romuald Brillout <[email protected]>
Date:   Sat Feb 22 19:27:56 2025 +0100

    workaround github issue template bug

commit 4f829f2
Author: Romuald Brillout <[email protected]>
Date:   Mon Feb 17 18:40:38 2025 +0100

    update to-do

commit 6f01b04
Author: Romuald Brillout <[email protected]>
Date:   Sun Feb 16 19:42:53 2025 +0100

    release: [email protected]

commit 831e451
Author: Rom <[email protected]>
Date:   Sun Feb 16 19:41:21 2025 +0100

    feat: +react.{client,server}.js (#165)

commit d24826d
Author: Romuald Brillout <[email protected]>
Date:   Sun Feb 16 15:45:51 2025 +0100

    chore: bump vike

commit 85bab1a
Author: Romuald Brillout <[email protected]>
Date:   Sun Feb 16 15:32:48 2025 +0100

    minor refactor

commit 702d05e
Author: Romuald Brillout <[email protected]>
Date:   Sun Feb 16 15:13:52 2025 +0100

    fix: support `stream: false`

commit 254934d
Author: Romuald Brillout <[email protected]>
Date:   Sun Feb 16 13:40:40 2025 +0100

    minor refactor

commit d6e855e
Author: Romuald Brillout <[email protected]>
Date:   Sun Feb 16 13:35:31 2025 +0100

    chore: bump typescript

commit 94cb4f6
Author: Romuald Brillout <[email protected]>
Date:   Thu Feb 13 19:59:07 2025 +0100

    minor refactor: refine cumulative type

commit fbfa627
Author: Romuald Brillout <[email protected]>
Date:   Thu Feb 13 19:53:52 2025 +0100

    minor refactor

commit a82b607
Author: Romuald Brillout <[email protected]>
Date:   Thu Feb 13 18:55:43 2025 +0100

    minor refactor

commit b17d590
Author: Romuald Brillout <[email protected]>
Date:   Wed Feb 12 23:27:02 2025 +0100

    polish

commit 40d4497
Author: Romuald Brillout <[email protected]>
Date:   Wed Feb 12 23:22:12 2025 +0100

    update readmeS

commit 180df32
Author: Rom <[email protected]>
Date:   Wed Feb 12 19:25:05 2025 +0100

    bump Vike (#164)

commit 7a70504
Author: Rom <[email protected]>
Date:   Wed Feb 12 19:19:23 2025 +0100

    bump Vite & React (#163)

commit b672c56
Author: Romuald Brillout <[email protected]>
Date:   Tue Feb 11 09:47:57 2025 +0100

    docs: mention Bati at examples/ (closes #162)

commit 0497644
Author: Romuald Brillout <[email protected]>
Date:   Wed Jan 22 15:24:02 2025 +0100

    release: [email protected]

commit 79b8240
Author: Romuald Brillout <[email protected]>
Date:   Wed Jan 22 15:19:37 2025 +0100

    fix: update react-streaming

commit 7589618
Author: Muhammad <[email protected]>
Date:   Sun Dec 29 02:03:46 2024 +0700

    release: [email protected]

commit 7abd29c
Author: Muhammad <[email protected]>
Date:   Sun Dec 29 02:02:24 2024 +0700

    release: [email protected]

commit fcee3ce
Author: Muhammad <[email protected]>
Date:   Sun Dec 29 01:59:44 2024 +0700

    release: [email protected]

commit f327a5a
Merge: 840a114 d67da36
Author: Muhammad <[email protected]>
Date:   Sun Dec 29 01:51:23 2024 +0700

    Merge pull request #160 from vikejs/brillout/dev

    fix: stop overriding Wrapper meta

commit d67da36
Author: Muhammad <[email protected]>
Date:   Sun Dec 29 00:13:31 2024 +0700

    fix: simplify condition checks

commit ddcab7c
Author: Muhammad <[email protected]>
Date:   Sun Dec 29 00:01:32 2024 +0700

    fix: stop overriding Wrapper meta

commit f0bbbbc
Author: Muhammad <[email protected]>
Date:   Sat Dec 28 23:27:15 2024 +0700

    Revert "test"

    This reverts commit 5063795.

commit 3faeeef
Author: Romuald Brillout <[email protected]>
Date:   Sat Dec 28 12:46:37 2024 +0100

    chore: bump vike

commit 7d86590
Merge: 5063795 840a114
Author: Romuald Brillout <[email protected]>
Date:   Sat Dec 28 10:33:48 2024 +0100

    Merge remote-tracking branch 'origin/main' into brillout/dev

commit 840a114
Author: Romuald Brillout <[email protected]>
Date:   Sat Dec 28 10:32:23 2024 +0100

    fix: align ReactNode types

commit 5063795
Author: Muhammad <[email protected]>
Date:   Sat Dec 28 15:45:48 2024 +0700

    test

commit f8452fc
Author: Romuald Brillout <[email protected]>
Date:   Fri Dec 27 15:50:45 2024 +0100

    fix: stop overriding Wrapper meta

commit 4da87fe
Author: Romuald Brillout <[email protected]>
Date:   Thu Dec 26 20:13:40 2024 +0100

    release: [email protected]

commit 076f42a
Author: Romuald Brillout <[email protected]>
Date:   Thu Dec 26 20:10:47 2024 +0100

    fix: workaround error `Cannot find namespace JSX`

commit af04a3f
Author: Muhammad <[email protected]>
Date:   Mon Dec 23 22:08:49 2024 +0700

    release: [email protected]

commit 9d37bdf
Author: Muhammad <[email protected]>
Date:   Mon Dec 23 22:03:28 2024 +0700

    release: [email protected]

commit 64b31b5
Author: Muhammad <[email protected]>
Date:   Mon Dec 23 21:59:52 2024 +0700

    release: [email protected]

commit 225beda
Merge: e5de330 c4d5bb0
Author: Muhammad <[email protected]>
Date:   Mon Dec 23 21:22:46 2024 +0700

    Merge pull request #159 from vikejs/phonzammi/dev

    Minor refactor of integrations

commit c4d5bb0
Author: Muhammad <[email protected]>
Date:   Mon Dec 23 20:55:20 2024 +0700

    fix: refactor multiple conditions into a single evaluation

commit 89e85f3
Author: Muhammad <[email protected]>
Date:   Sun Dec 22 23:33:23 2024 +0700

    update docs

commit 6fed80d
Author: Muhammad <[email protected]>
Date:   Sun Dec 22 23:33:15 2024 +0700

    fix: move `pageContext.styledComponentsSheet` to `pageContext.styledComponents.sheet`

commit 4e21b06
Author: Muhammad <[email protected]>
Date:   Sun Dec 22 16:03:10 2024 +0700

    update docs

commit a2a533d
Author: Muhammad <[email protected]>
Date:   Sun Dec 22 16:01:51 2024 +0700

    fix: move `pageContext.config.antd.cache` to `pageContext.antd.cache`

commit 157dff3
Author: Muhammad <[email protected]>
Date:   Sun Dec 22 15:57:22 2024 +0700

    chore(deps): update dependencies

    - @ant-design/cssinjs: 1.22.0 > 1.22.1
    - antd: 5.22.2 > 5.22.5

commit e5de330
Author: Romuald Brillout <[email protected]>
Date:   Thu Dec 19 11:45:17 2024 +0100

    remove vike logo

commit 7cbd183
Author: Muhammad <[email protected]>
Date:   Tue Dec 17 19:32:18 2024 +0700

    release: [email protected]

commit 2f3dab2
Author: Muhammad <[email protected]>
Date:   Mon Dec 16 23:59:06 2024 +0700

    feat: new extension `vike-react-styled-jsx` (#158)

    Co-authored-by: Rom <[email protected]>

commit 66d0838
Author: Romuald Brillout <[email protected]>
Date:   Tue Dec 10 12:27:36 2024 +0100

    release: [email protected]

commit d7615f0
Author: Romuald Brillout <[email protected]>
Date:   Tue Dec 10 12:24:01 2024 +0100

    fix: simplify JSDocs for stream setting

commit c07905c
Author: Romuald Brillout <[email protected]>
Date:   Wed Dec 4 22:51:54 2024 +0100

    release: [email protected]

commit 56e646e
Author: Khasanov Marat <[email protected]>
Date:   Thu Dec 5 01:51:23 2024 +0400

    fix: fix infinite requests for useSuspenseQuery (#157)

commit 85a61ca
Author: Muhammad <[email protected]>
Date:   Wed Dec 4 02:07:57 2024 +0700

    release: [email protected]

commit d28cd8e
Author: Muhammad <[email protected]>
Date:   Wed Dec 4 01:54:37 2024 +0700

    feat: new extension `vike-react-styled-components` (#156)

    * feat: new extension `vike-react-styled-components`

    * polish

    ---------

    Co-authored-by: Romuald Brillout <[email protected]>

commit 8f7bc0f
Author: Muhammad <[email protected]>
Date:   Sun Dec 1 01:46:07 2024 +0700

    release: [email protected]

commit 7170f0a
Author: Muhammad <[email protected]>
Date:   Sun Dec 1 01:41:16 2024 +0700

    release: [email protected]

commit 0e11f42
Merge: 2d5126f eb072d4
Author: Rom <[email protected]>
Date:   Sat Nov 30 19:11:15 2024 +0100

    Merge pull request #155 from vikejs/phonzammi/dev

commit eb072d4
Author: Romuald Brillout <[email protected]>
Date:   Sat Nov 30 19:08:17 2024 +0100

    polish

commit 636fb8a
Author: Muhammad <[email protected]>
Date:   Sun Dec 1 00:29:36 2024 +0700

    feat: new extension `vike-react-antd`

commit b102b72
Author: Muhammad <[email protected]>
Date:   Sun Dec 1 00:27:41 2024 +0700

    fix: add `ImportString` type to `onBeforeRenderHtml` & `onAfterRenderHtml`

commit 2d5126f
Author: Romuald Brillout <[email protected]>
Date:   Thu Nov 28 15:37:12 2024 +0100

    release: [email protected]

commit 0070495
Author: Romuald Brillout <[email protected]>
Date:   Thu Nov 28 13:58:13 2024 +0100

    fix: add eject.config.js

commit 2870975
Author: Romuald Brillout <[email protected]>
Date:   Thu Nov 28 13:54:24 2024 +0100

    minor refactor

commit fcac4b0
Author: Romuald Brillout <[email protected]>
Date:   Thu Nov 28 13:43:01 2024 +0100

    fix: rename +config.js to config.js

commit b75a2d0
Author: Romuald Brillout <[email protected]>
Date:   Mon Nov 25 19:24:25 2024 +0100

    release: [email protected]

commit 7e50f90
Author: Khasanov Marat <[email protected]>
Date:   Mon Nov 25 19:23:46 2024 +0100

    feat: add ability to create react query client options based on page context (#154)

    Co-authored-by: Romuald Brillout <[email protected]>

commit 0d69de9
Author: Romuald Brillout <[email protected]>
Date:   Wed Nov 20 16:02:26 2024 +0100

    release: [email protected]

commit 04ca5b8
Author: Romuald Brillout <[email protected]>
Date:   Wed Nov 20 15:49:34 2024 +0100

    feat: new hook onBeforeRenderHtml() (#87)

commit d45d142
Author: Romuald Brillout <[email protected]>
Date:   Wed Nov 20 15:47:21 2024 +0100

    fix: improve JSDoc

commit 997fbbc
Author: Romuald Brillout <[email protected]>
Date:   Wed Nov 20 15:44:50 2024 +0100

    minor refactor

commit 958d8da
Author: Romuald Brillout <[email protected]>
Date:   Wed Nov 20 15:42:35 2024 +0100

    fix: set pageContext.page also on the server-side

commit d70ab1d
Author: Romuald Brillout <[email protected]>
Date:   Wed Nov 20 15:39:51 2024 +0100

    minor refactor

commit 18688ce
Author: Romuald Brillout <[email protected]>
Date:   Tue Nov 19 13:57:32 2024 +0100

    typo

commit b9f9b4d
Merge: 7a20055 77196fc
Author: Muhammad <[email protected]>
Date:   Tue Nov 19 19:36:38 2024 +0700

    Merge pull request #153 from vikejs/phonzammi/dev

    docs: minor

commit 77196fc
Author: Romuald Brillout <[email protected]>
Date:   Tue Nov 19 10:14:34 2024 +0100

    polish

commit 053f38f
Author: Muhammad <[email protected]>
Date:   Tue Nov 19 08:39:55 2024 +0700

    docs: minor move the `CHANGELOG.md` links

commit 10bf6d1
Author: Muhammad <[email protected]>
Date:   Tue Nov 19 00:38:52 2024 +0700

    docs: fix changelog

commit 5613dcd
Author: Muhammad <[email protected]>
Date:   Tue Nov 19 00:12:20 2024 +0700

    docs: update `vike-react-chakra` readme

commit 2cca509
Author: Muhammad <[email protected]>
Date:   Tue Nov 19 00:12:00 2024 +0700

    docs: update main readme

commit 7a20055
Author: Muhammad <[email protected]>
Date:   Mon Nov 18 22:25:40 2024 +0700

    release: [email protected]

commit f2308c3
Author: Muhammad <[email protected]>
Date:   Mon Nov 18 22:13:21 2024 +0700

    update `@brillout/release-me`

commit f3b5400
Author: Muhammad <[email protected]>
Date:   Mon Nov 18 01:16:04 2024 +0700

    new extension `vike-react-chakra` (#151)

commit d74324b
Author: Romuald Brillout <[email protected]>
Date:   Mon Nov 11 21:52:28 2024 +0100

    docs: minor fix

commit 6ab116a
Author: Romuald Brillout <[email protected]>
Date:   Mon Nov 11 12:41:55 2024 +0100

    docs: polish

commit 96da471
Author: Romuald Brillout <[email protected]>
Date:   Mon Nov 11 12:34:11 2024 +0100

    docs: document error handling when using HTML streaming (vikejs/vike#1959)

commit 2883eb8
Author: Romuald Brillout <[email protected]>
Date:   Sun Oct 27 18:43:19 2024 +0100

    improve issue template

commit 17ab4db
Author: Romuald Brillout <[email protected]>
Date:   Sun Oct 27 18:39:26 2024 +0100

    improve issue template

commit 28c0842
Author: Romuald Brillout <[email protected]>
Date:   Sun Oct 27 18:37:08 2024 +0100

    add issue template

commit 1bf210f
Author: Romuald Brillout <[email protected]>
Date:   Sun Oct 13 14:00:35 2024 +0200

    docs: minor

commit 3ea20c1
Author: Romuald Brillout <[email protected]>
Date:   Sun Oct 13 13:58:29 2024 +0200

    docs: mention SSR benefits (fix vikejs/vike#1921)

commit a5d03ab
Author: Romuald Brillout <[email protected]>
Date:   Sun Oct 13 13:59:35 2024 +0200

    docs: minor

commit acc3b0d
Author: Romuald Brillout <[email protected]>
Date:   Sun Oct 13 13:56:52 2024 +0200

    docs: minor

commit e169831
Author: Romuald Brillout <[email protected]>
Date:   Wed Sep 25 21:26:29 2024 +0200

    use +keepScrollPosition

commit 803fa06
Author: Romuald Brillout <[email protected]>
Date:   Wed Sep 25 21:14:02 2024 +0200

    update vike

commit 2409267
Author: Romuald Brillout <[email protected]>
Date:   Sat Sep 21 13:20:17 2024 +0200

    release: [email protected]

commit 9261c4b
Author: Romuald Brillout <[email protected]>
Date:   Sat Sep 21 13:02:39 2024 +0200

    fix: await rendering before apply head settings

commit 12afe05
Author: Romuald Brillout <[email protected]>
Date:   Thu Sep 12 21:16:34 2024 +0200

    Revert "strict peer dependencies"

    This reverts commit a51d57e.

commit a51d57e
Author: Romuald Brillout <[email protected]>
Date:   Thu Sep 12 21:16:21 2024 +0200

    strict peer dependencies

commit 776f090
Author: Romuald Brillout <[email protected]>
Date:   Thu Sep 12 18:42:58 2024 +0200

    minor refactor

commit 2a3b945
Author: Romuald Brillout <[email protected]>
Date:   Thu Sep 12 18:39:18 2024 +0200

    minor refactor

commit 53b19c9
Author: Romuald Brillout <[email protected]>
Date:   Tue Sep 10 19:35:17 2024 +0200

    release: [email protected]

commit 4fb2251
Author: Romuald Brillout <[email protected]>
Date:   Tue Sep 10 19:21:28 2024 +0200

    fix: properly export config (vikejs/vike-vue#194)

commit 68b6dc0
Author: Romuald Brillout <[email protected]>
Date:   Fri Sep 6 09:49:03 2024 +0200

    fix: return undefined instead of throw error upon missing pageContext (fix #147)

commit 9232140
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 30 10:41:04 2024 +0200

    release: [email protected]

commit 6fbf795
Author: Shahyar <[email protected]>
Date:   Fri Aug 30 10:40:38 2024 +0200

    feat: add bodyHtmlBegin, bodyHtmlEnd (#146)

commit 2974913
Author: Rom <[email protected]>
Date:   Sun Aug 25 14:17:59 2024 +0200

    improve formatting (#145)

commit b86cdb4
Author: Rom <[email protected]>
Date:   Sun Aug 25 13:44:52 2024 +0200

    refactor: `renderer/` => `integration/` (#144)

commit 39927a2
Author: Romuald Brillout <[email protected]>
Date:   Sat Aug 24 16:09:02 2024 +0200

    release: [email protected]

commit fd4dd08
Author: Romuald Brillout <[email protected]>
Date:   Sat Aug 24 16:05:41 2024 +0200

    polish package.json

commit 9dfd4ab
Author: Romuald Brillout <[email protected]>
Date:   Wed Aug 21 10:26:36 2024 +0200

    fix: add JSDocs

commit 5d21040
Author: Romuald Brillout <[email protected]>
Date:   Tue Aug 20 14:59:49 2024 +0200

    fix: make useConfig() work for vike-react hooks

commit 9d9342f
Author: Romuald Brillout <[email protected]>
Date:   Tue Aug 20 14:58:48 2024 +0200

    fix: use [email protected]

    BREAKING CHANGE: Update to `[email protected]` or above.

commit acd5466
Author: Romuald Brillout <[email protected]>
Date:   Tue Aug 20 13:53:24 2024 +0200

    feat: new hook onAfterRenderHtml()

commit 5dfd0fc
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 19 14:37:51 2024 +0200

    refactor: align `vike-{react,vue,solid}`

commit a244e11
Author: Romuald Brillout <[email protected]>
Date:   Sat Aug 17 11:51:14 2024 +0200

    release: [email protected]

commit b61c80e
Author: Romuald Brillout <[email protected]>
Date:   Sat Aug 17 11:29:42 2024 +0200

    minor refactor

commit 405af64
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 16 09:44:06 2024 +0200

    fix: update lang upon useConfig()

commit 2fa8939
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 16 09:38:31 2024 +0200

    minor refactor

commit ae20bbe
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 15 14:21:41 2024 +0200

    minor refactor

commit c1e0c83
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 15 14:18:46 2024 +0200

    fix: enable useConfig() after hydration

commit a6c82a2
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 15 14:13:14 2024 +0200

    fix: fix callable cumulative configs

commit 44c8d90
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 15 14:06:10 2024 +0200

    minor refactor

commit a53b7c1
Author: Romuald Brillout <[email protected]>
Date:   Wed Aug 14 15:41:01 2024 +0200

    fix: support callable cumulative configs

commit 653b808
Author: Romuald Brillout <[email protected]>
Date:   Wed Aug 14 15:36:33 2024 +0200

    fix: fix `useConfig()` for `{body,html}Attributes` (vikejs/vike-vue#180)

commit bb01200
Author: Romuald Brillout <[email protected]>
Date:   Tue Aug 13 11:29:18 2024 +0200

    align with `vike-{vue,solid}`

commit 1673381
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 17:20:30 2024 +0200

    release: [email protected]

commit 8acc892
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 09:33:42 2024 +0200

    fix: add `null` and `undefined` to head settings type

commit 00b933c
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 09:29:11 2024 +0200

    refactor ConfigFromHookResolved

commit 41fd399
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 09:17:09 2024 +0200

    feat: support setting `{body,html}Attributes` based on `pageContext`

commit 540e91d
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 09:01:05 2024 +0200

    feat: support setting viewport based on `pageContext`

commit 9ee6cb6
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 08:41:58 2024 +0200

    refacor ConfigFromHookResolved

commit a0d1520
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 08:02:16 2024 +0200

    feat: add `useConfig()` support for `lang` and `favicon` settings

commit 30c2476
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 07:30:41 2024 +0200

    refactor getHeadSetting()

commit 7777570
Author: Romuald Brillout <[email protected]>
Date:   Sun Aug 11 13:15:40 2024 +0200

    fix: make `null` override previous value

commit ded88e1
Author: Romuald Brillout <[email protected]>
Date:   Mon Aug 12 07:50:12 2024 +0200

    refactor useConfig-server.ts

commit b833320
Author: Romuald Brillout <[email protected]>
Date:   Sat Aug 10 14:17:53 2024 +0200

    refactor useConfig-client.ts

commit 1db9641
Author: Romuald Brillout <[email protected]>
Date:   Sun Aug 11 09:53:45 2024 +0200

    update typescript

commit 96ff182
Author: Romuald Brillout <[email protected]>
Date:   Sun Aug 11 10:47:22 2024 +0200

    docs: mention useConfig()

commit 8268a6f
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 9 11:22:23 2024 +0200

    comment

commit 3d7626a
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 9 11:17:36 2024 +0200

    refactor: simplify Head-client.ts

commit 64d231f
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 20:42:30 2024 +0200

    align test

commit b903998
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 19:42:08 2024 +0200

    use [email protected]

commit 5391af7
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 15:26:33 2024 +0200

    minor refactor

commit cd154b7
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 15:00:06 2024 +0200

    align useConfig() example

commit 7763dd8
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 14:53:03 2024 +0200

    remove redundant peerDependency

commit 68d24a1
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 14:11:13 2024 +0200

    minor

commit d1813e3
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 13:50:58 2024 +0200

    update vite dependency

commit 7d26f99
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 13:06:38 2024 +0200

    update dependencies of /examples/full

commit 2d64c0d
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 8 11:40:42 2024 +0200

    minor refactor

commit 52b439a
Author: Romuald Brillout <[email protected]>
Date:   Wed Aug 7 15:50:27 2024 +0200

    move to-do list

commit 885a79d
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 08:30:01 2024 +0200

    update to-do

commit 128ee15
Author: Romuald Brillout <[email protected]>
Date:   Tue Aug 6 15:06:16 2024 +0200

    release: [email protected]

commit 4c335b6
Author: Romuald Brillout <[email protected]>
Date:   Sun Aug 4 13:54:18 2024 +0200

    minor refactor

commit 7e8a7cd
Author: Horváth Dániel <[email protected]>
Date:   Mon Aug 5 06:31:02 2024 +0200

    ci: remove pnpm version

commit 6b65f79
Author: Horváth Dániel <[email protected]>
Date:   Mon Aug 5 06:27:32 2024 +0200

    release: [email protected]

commit bcaf534
Author: Horváth Dániel <[email protected]>
Date:   Mon Aug 5 06:26:12 2024 +0200

    release: [email protected]

commit 8665acb
Author: Horváth Dániel <[email protected]>
Date:   Mon Aug 5 06:23:38 2024 +0200

    chore: add packageManager field

commit b420ebc
Author: Horváth Dániel <[email protected]>
Date:   Mon Aug 5 06:14:48 2024 +0200

    refactor withFallback

commit b568453
Author: Horváth Dániel <[email protected]>
Date:   Mon Aug 5 04:44:28 2024 +0200

    docs: vike-react-query

commit aa51a93
Author: Horváth Dániel <[email protected]>
Date:   Mon Aug 5 04:20:24 2024 +0200

    fix: withFallback bug

commit 0e45940
Author: Romuald Brillout <[email protected]>
Date:   Sun Aug 4 13:47:07 2024 +0200

    minor refactor

commit 47dd3e6
Author: Romuald Brillout <[email protected]>
Date:   Sun Aug 4 13:23:13 2024 +0200

    update link

commit 9ae756b
Author: Romuald Brillout <[email protected]>
Date:   Sun Aug 4 09:14:25 2024 +0200

    fix: fix cumulative Head handling

commit 76ab057
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 14:38:04 2024 +0200

    minor refactor: PageContextInternal

commit dc4d944
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 12:04:14 2024 +0200

    fix: make hooks `onBeforeRenderClient()` and `onAfterRenderClient()` cumulative

commit b8d538c
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 11:52:43 2024 +0200

    remove outdated code

commit 945d744
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 09:39:15 2024 +0200

    comment

commit ba1cfd3
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 09:17:56 2024 +0200

    fix: improve <head> tags order

commit 3c4f6d2
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 09:16:35 2024 +0200

    minor refactor

commit def8c09
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 09:10:06 2024 +0200

    fix: improve JSDocs

commit e765d71
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 08:02:38 2024 +0200

    minor refactor

commit abf19b8
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 07:23:43 2024 +0200

    fix changelog

commit 43f6421
Author: Romuald Brillout <[email protected]>
Date:   Fri Aug 2 07:19:43 2024 +0200

    fix: more accurate pageContext type for setting getters

commit 20b7409
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 14:24:47 2024 +0200

    typo

commit 993d282
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 14:23:11 2024 +0200

    fix changelog

commit b23acf5
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 14:19:46 2024 +0200

    release: [email protected]

commit 55a0a60
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 14:18:16 2024 +0200

    update to-do

commit b17d27b
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 13:53:00 2024 +0200

    minor

commit bebaf38
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 13:44:09 2024 +0200

    feat: new setting `viewport`

    BREAKING CHANGE: The responsive viewport tag is now injected by default (`<meta name="viewport" content"width=device-width,initial-scale=1">`). If you already inject `<meta name="viewport">` then remove it or set the `viewport` setting to `null`, see https://vike.dev/viewport.

commit 7c5bc81
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 13:34:16 2024 +0200

    update lang JSDocs

commit 28f1c2b
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 12:37:21 2024 +0200

    fix: make favicon setting global

    BREAKING CHANGE: The setting `favicon` now only accepts one global
    value, see https://vike.dev/favicon#global

commit 427c7cf
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 12:10:03 2024 +0200

    feat: new settings `htmlAttriutes` and `bodyAttributes`

commit 270796b
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 12:12:58 2024 +0200

    fx: require [email protected]

    BREAKING CHANGE: update vike to `0.4.182` or above

commit 41ec933
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 10:42:07 2024 +0200

    feat: new setting `image`

commit daa9894
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 11:06:07 2024 +0200

    improve test

commit 282acc7
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 09:53:11 2024 +0200

    minor refactor

commit 50f3be6
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 09:50:17 2024 +0200

    update favicon JSDocs

commit 60ffecd
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 08:51:57 2024 +0200

    feat: new setting `description`

commit 9f51674
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 08:55:51 2024 +0200

    improve test

commit fbfdc9f
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 08:38:00 2024 +0200

    update to-do

commit 68ec43f
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 08:00:50 2024 +0200

    improve JSDocs

commit 84d72c1
Author: Romuald Brillout <[email protected]>
Date:   Thu Aug 1 07:50:11 2024 +0200

    avoid JSDocs duplication

commit 8fed661
Author: Romuald Brillout <[email protected]>
Date:   Wed Jul 31 17:20:53 2024 +0200

    update to-do

commit 0515639
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 29 11:35:11 2024 +0200

    update to-do

commit 8d0245c
Author: Rom <[email protected]>
Date:   Mon Jul 29 10:39:17 2024 +0200

    feat: [`useConfig()`](https://vike.dev/useConfig) (#128)

    BREAKING CHANGE: The `Head` setting is now cumulative https://vike.dev/Head#cumulative

commit bbd1198
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 23 16:59:35 2024 +0200

    update to-do

commit 56b69bf
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 23 16:59:28 2024 +0200

    minor refactor

commit 5c88c7b
Author: Matias Perez <[email protected]>
Date:   Mon Jul 29 03:36:46 2024 -0300

    fix: avoid overriding Head setting (fix #135) (#136)

    Co-authored-by: Romuald Brillout <[email protected]>

commit bdf9e08
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 22 18:25:28 2024 +0200

    minor refactor

commit 6784bac
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 22 18:10:12 2024 +0200

    fix: clearer (and maybe more accurate) condition for updating document properties

commit 7b50686
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 22 17:15:39 2024 +0200

    minor refactor

commit 4284edd
Author: Dániel Horváth <[email protected]>
Date:   Tue Jul 16 22:04:41 2024 +0200

    release: [email protected]

commit 83d837e
Author: Dániel Horváth <[email protected]>
Date:   Tue Jul 16 22:01:48 2024 +0200

    examples/apollo package.json

commit a4e1bb0
Author: Dániel Horváth <[email protected]>
Date:   Tue Jul 16 21:57:43 2024 +0200

    vike-react-apollo: update vike-react version

commit b4c2c2b
Author: Dániel Horváth <[email protected]>
Date:   Tue Jul 16 21:53:19 2024 +0200

    release: [email protected]

commit 95bc323
Author: nitedani <[email protected]>
Date:   Tue Jul 16 21:47:03 2024 +0200

    feat: add vike-react-apollo (#134)

commit 2737f03
Author: nitedani <[email protected]>
Date:   Tue Jul 16 21:38:22 2024 +0200

    feat: vike-react Loading config (#133)

commit fa812a0
Author: Romuald Brillout <[email protected]>
Date:   Fri Jul 12 14:31:22 2024 +0200

    update to-do

commit e5fbd02
Author: Romuald Brillout <[email protected]>
Date:   Fri Jul 12 09:49:26 2024 +0200

    update typescript

commit 0b9ffa9
Author: Romuald Brillout <[email protected]>
Date:   Thu Jul 11 23:15:09 2024 +0200

    update to-do

commit 64f2adf
Author: Romuald Brillout <[email protected]>
Date:   Thu Jul 11 11:49:31 2024 +0200

    update to-do

commit 079886d
Author: Romuald Brillout <[email protected]>
Date:   Thu Jul 11 11:28:29 2024 +0200

    fix: remove pageContext.userAgent type in favor of
    pageContext.headers['user-agent']

commit 1f73252
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 9 15:56:00 2024 +0200

    temporarily disable pnpm cache

commit 58cea88
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 9 15:39:28 2024 +0200

    bump playwright

commit 0a9fec9
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 9 11:34:21 2024 +0200

    improve react-query example

commit 71ac24a
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 9 10:43:17 2024 +0200

    docs(vike-react-query): add "See also"

commit f91f826
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 9 10:05:36 2024 +0200

    small refactor

commit c0679d6
Author: Romuald Brillout <[email protected]>
Date:   Tue Jul 9 09:31:30 2024 +0200

    fix: update react-streaming

commit 2fb76e4
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 8 19:17:43 2024 +0200

    minor refactor

commit 7fe7b04
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 8 19:01:25 2024 +0200

    fix: fix document setting types

commit 024b6ad
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 8 16:07:34 2024 +0200

    fix: add og:title tag (fix vikejs/vike#1732)

commit b4f4841
Author: Romuald Brillout <[email protected]>
Date:   Mon Jul 8 09:52:27 2024 +0200

    docs: improve vike-react-query readme

commit 1f15d53
Author: Romuald Brillout <[email protected]>
Date:   Sat Jul 6 18:34:00 2024 +0200

    release: [email protected]

commit c98d97b
Author: Romuald Brillout <[email protected]>
Date:   Sat Jul 6 17:57:24 2024 +0200

    fix: update react-streaming

commit dfa586c
Author: nitedani <[email protected]>
Date:   Fri Jul 5 01:01:47 2024 +0200

    feat: add clientOnly helper (#127)

commit 0022f7a
Author: Romuald Brillout <[email protected]>
Date:   Wed Jul 3 21:35:55 2024 +0200

    docs: polish

commit a52981f
Author: Romuald Brillout <[email protected]>
Date:   Wed Jul 3 21:29:40 2024 +0200

    docs: improve note

commit 145038c
Author: Romuald Brillout <[email protected]>
Date:   Wed Jul 3 17:02:14 2024 +0200

    comment

commit ebd9c09
Author: Romuald Brillout <[email protected]>
Date:   Wed Jul 3 16:49:25 2024 +0200

    release: [email protected]

commit cac8d49
Author: Romuald Brillout <[email protected]>
Date:   Wed Jul 3 16:20:06 2024 +0200

    fix: use react-streaming >=0.3.36 and vike >=0.4.178

commit 84ec3de
Author: Romuald Brillout <[email protected]>
Date:   Sun Jun 30 13:17:14 2024 +0200

    docs: minor

commit 711e532
Author: Romuald Brillout <[email protected]>
Date:   Sun Jun 30 13:16:00 2024 +0200

    docs: minor

commit 0842008
Author: Romuald Brillout <[email protected]>
Date:   Sun Jun 30 13:12:27 2024 +0200

    docs: polish

commit 571ce2c
Author: Romuald Brillout <[email protected]>
Date:   Sun Jun 30 13:09:07 2024 +0200

    docs: polish

commit 159af77
Author: Rom <[email protected]>
Date:   Sun Jun 30 13:01:02 2024 +0200

    docs: polish vike-react-query docs (#126)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants