Skip to content

Commit 5ce3149

Browse files
committed
Add more complete example for opting out of deep merging
1 parent 9d1a9f7 commit 5ce3149

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,15 @@ If deep merging is enabled by default, it's possible to opt out within the actio
147147

148148
```ruby
149149
class CrazyScorersController < ApplicationController
150+
inertia_share do
151+
{
152+
basketball_data: {
153+
points: 50,
154+
rebounds: 10,
155+
}
156+
}
157+
end
158+
150159
def index
151160
render inertia: 'CrazyScorersComponent',
152161
props: { basketball_data: { points: 100 } },

0 commit comments

Comments
 (0)